Loading core/misc/ajax.js +1 −1 Original line number Diff line number Diff line Loading @@ -554,7 +554,7 @@ // Sanity check for browser support (object expected). // When using iFrame uploads, responses must be returned as a string. if (typeof response === 'string') { response = $.parseJSON(response); response = JSON.parse(response); } // Prior to invoking the response's commands, verify that they can be Loading core/misc/jquery.form.js +1 −5 Original line number Diff line number Diff line Loading @@ -922,10 +922,6 @@ return (doc && doc.documentElement && doc.documentElement.nodeName !== 'parsererror') ? doc : null; }; var parseJSON = $.parseJSON || function(s) { /* jslint evil:true */ return window['eval']('(' + s + ')'); // eslint-disable-line dot-notation }; var httpData = function(xhr, type, s) { // mostly lifted from jq1.4.4 Loading @@ -943,7 +939,7 @@ } if (typeof data === 'string') { if ((type === 'json' || !type) && ct.indexOf('json') >= 0) { data = parseJSON(data); data = JSON.parse(data); } else if ((type === 'script' || !type) && ct.indexOf('javascript') >= 0) { $.globalEval(data); } Loading Loading
core/misc/ajax.js +1 −1 Original line number Diff line number Diff line Loading @@ -554,7 +554,7 @@ // Sanity check for browser support (object expected). // When using iFrame uploads, responses must be returned as a string. if (typeof response === 'string') { response = $.parseJSON(response); response = JSON.parse(response); } // Prior to invoking the response's commands, verify that they can be Loading
core/misc/jquery.form.js +1 −5 Original line number Diff line number Diff line Loading @@ -922,10 +922,6 @@ return (doc && doc.documentElement && doc.documentElement.nodeName !== 'parsererror') ? doc : null; }; var parseJSON = $.parseJSON || function(s) { /* jslint evil:true */ return window['eval']('(' + s + ')'); // eslint-disable-line dot-notation }; var httpData = function(xhr, type, s) { // mostly lifted from jq1.4.4 Loading @@ -943,7 +939,7 @@ } if (typeof data === 'string') { if ((type === 'json' || !type) && ct.indexOf('json') >= 0) { data = parseJSON(data); data = JSON.parse(data); } else if ((type === 'script' || !type) && ct.indexOf('javascript') >= 0) { $.globalEval(data); } Loading