Skip to content

Commit 61ddfea

Browse files
committed
[XSS] Updated OpenID regexp.
1 parent bed8935 commit 61ddfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xss/InjectionChecker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ XSS.InjectionChecker = (async () => {
370370
.replace(/<!--/g, '') // remove HTML comments preamble (see next line)
371371
.replace(/(^(?:[^/?]*[=;.+-])?)\s*[\[(]+/g, '$1') // remove leading parens and braces
372372
.replace(this._openIdRx, '_OPENID_SCOPE_=XYZ')
373-
.replace(/^[^=]*OPENid\.(\w+)=/gi, "OPENid_\1")
373+
.replace(/^[^=]*OPENid\.(\w+)=/gi, "OPENid_$1")
374374
.replace(this._gmxRx, '_GMX_-_GMX_');
375375

376376
if (expr.indexOf(")") !== -1) expr += ")"; // account for externally balanced parens

0 commit comments

Comments
 (0)