mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Fix regex used to detect forbidden CSP directives
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/778
This commit is contained in:
parent
067ef5843c
commit
4b34d29384
1 changed files with 1 additions and 1 deletions
|
@ -2003,7 +2003,7 @@ const FilterParser = class {
|
|||
this.reIsolateHostname = /^(\*?\.)?([^\x00-\x24\x26-\x2C\x2F\x3A-\x5E\x60\x7B-\x7F]+)(.*)/;
|
||||
this.reHasUnicode = /[^\x00-\x7F]/;
|
||||
this.reWebsocketAny = /^ws[s*]?(?::\/?\/?)?\*?$/;
|
||||
this.reBadCSP = /(?:^|;)\s*report-(?:to|uri)\b/;
|
||||
this.reBadCSP = /\breport-(?:to|uri)\b/;
|
||||
this.reGoodToken = /[%0-9a-z]{1,}/g;
|
||||
this.reSeparator = /[\/^]/;
|
||||
this.reRegexToken = /[%0-9A-Za-z]{2,}/g;
|
||||
|
|
Loading…
Reference in a new issue