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 4048694 commit 5499f5fCopy full SHA for 5499f5f
1 file changed
src/xss/InjectionChecker.js
@@ -345,7 +345,7 @@ XSS.InjectionChecker = (async () => {
345
.replace(this._arrayAccessRx, '_ARRAY_ACCESS_')
346
.replace(/<([\w:]+)>[^</(="'`]+<\/\1>/g, '<$1/>') // reduce XML text nodes
347
.replace(/<!--/g, '') // remove HTML comments preamble (see next line)
348
- .replace(/(^(?:[^/]*[=;.+-])?)\s*[\[(]+/g, '$1') // remove leading parens and braces
+ .replace(/(^(?:[^/?]*[=;.+-])?)\s*[\[(]+/g, '$1') // remove leading parens and braces
349
.replace(this._openIdRx, '_OPENID_SCOPE_=XYZ')
350
.replace(/^[^=]*OPENid\.(\w+)=/gi, "OPENid_\1")
351
.replace(this._gmxRx, '_GMX_-_GMX_');
0 commit comments