We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e34405a commit 962cfdaCopy full SHA for 962cfda
1 file changed
src/xss/InjectionChecker.js
@@ -886,7 +886,7 @@ XSS.InjectionChecker = (async () => {
886
l = l.replace(/[^=]*=\s*/i, '').replace(/[\u0000-\u001f]/g, '');
887
l = /^["']/.test(l) ? l.replace(/^(['"])([^]*?)\1[^]*/g, '$2') : l.replace(/[\s>][^]*/, '');
888
889
- if (/^(?:javascript|data):|\[[^]+\]/i.test(l) || /[<'"(]/.test(unescape(l)) && await this.checkUrl(l)) return true;
+ if (/^(?:javascript|data):/i.test(l) || /[<'"([]/.test(unescape(l)) && await this.checkUrl(l)) return true;
890
}
891
892
return this._rxCheck("HTML", s) || this._rxCheck("Globals", s);
0 commit comments