Work-around for potential issues with legacy prefs.
This commit is contained in:
parent
5327505fba
commit
c806c6bbff
|
@ -50,9 +50,11 @@ XSS.Exceptions = (() => {
|
|||
}
|
||||
|
||||
// destination or @source matching legacy regexp
|
||||
if (this.legacyExceptions.test(unescapedDest) &&
|
||||
if (this.legacyExceptions &&
|
||||
(this.legacyExceptions.test(unescapedDest) &&
|
||||
!this.isBadException(destObj.hostname) ||
|
||||
this.legacyExceptions.test("@" + unescape(srcUrl))) {
|
||||
this.legacyExceptions.test("@" + unescape(srcUrl))
|
||||
)) {
|
||||
logEx("Legacy exception", this.legacyExceptions);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue