Skip to content

Commit 05f1e9d

Browse files
authored
Merge pull request #2479 from webazex/3.5.x
Fix malformed application/x-www-form-urlencoded Content-Type headers
2 parents dc43bd2 + c4c8b70 commit 05f1e9d

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎manager/actions/category_mgr/skin/js/categories.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ document.getElementById('elements-select').onchange = function(e) {
1111
document.getElementById('categorize-formfields').innerHTML = '';
1212
let xhr = new XMLHttpRequest();
1313
xhr.open('POST', ajax_url, true);
14-
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
14+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
1515
xhr.onload = function() {
1616
if (this.readyState === 4) {
1717
categorizeWorkbench.classList.remove('ajax_loading');

‎manager/media/style/common/login.tpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
form.submitButton.classList.add('scaleX');
101101
var xhr = new XMLHttpRequest();
102102
xhr.open('POST', 'processors/login.processor.php', true);
103-
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
103+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
104104
xhr.onload = function() {
105105
if(this.readyState === 4) {
106106
var header = this.response.slice(0, 9);

‎manager/media/style/default/chunks/welcome/StartUpScript.tpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
function hideConfigCheckWarning(key) {
33
var xhr = new XMLHttpRequest();
44
xhr.open("POST", "index.php?a=118", true);
5-
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
5+
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
66
xhr.onload = function() {
77
if(this.readyState === 4) {
88
var fieldset = document.getElementById(key + "_warning_wrapper").parentNode.parentNode;

‎manager/media/style/default/js/evo.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2587,7 +2587,7 @@
25872587
} else {
25882588
var xhr = new XMLHttpRequest();
25892589
xhr.open(o.method, o.url, true);
2590-
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
2590+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
25912591
xhr.setRequestHeader('X-REQUESTED-WITH', 'XMLHttpRequest');
25922592
if (new URL(o.url, d.baseURI).origin === w.location.origin && evo.tabsCsrfToken()) {
25932593
xhr.setRequestHeader('X-CSRF-TOKEN', evo.tabsCsrfToken());

‎manager/media/style/default/login.tpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@
576576
document.getElementById('mainloader').classList.add('show');
577577
var xhr = new XMLHttpRequest();
578578
xhr.open('POST', '?a=0', true);
579-
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
579+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
580580
xhr.onload = function() {
581581
if (this.readyState === 4) {
582582
var header = this.response.slice(0, 9);

0 commit comments

Comments
 (0)