diff options
| -rw-r--r-- | ishtar_common/static/js/ishtar.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 634657636..d2d6025d6 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -23,10 +23,18 @@ beforeSend: function(xhr, settings) { } }}); +/* CVE-2020-11022 */ jQuery.htmlPrefilter = function(html) { return html; }; +/* CVE-2015-9251 */ +jQuery.ajaxPrefilter(function(s) { + if ( s.crossDomain ) { + s.contents.script = false; + } +}); + if (typeof String.prototype.endsWith !== 'function') { String.prototype.endsWith = function(suffix) { return this.indexOf(suffix, this.length - suffix.length) !== -1; |
