mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 10:52:43 +01:00
Further improve detection of forbidden report-xxx
usage in filters
As per feedback from https://github.com/distinctmondaylila Related commit: https://github.com/gorhill/uBlock/commit/db5656f607
This commit is contained in:
parent
1ef2ea0e93
commit
41511726dc
@ -896,8 +896,8 @@ export class AstFilterParser {
|
|||||||
this.reResponseheaderPattern = /^\^responseheader\(.*\)$/;
|
this.reResponseheaderPattern = /^\^responseheader\(.*\)$/;
|
||||||
this.rePatternScriptletJsonArgs = /^\{.*\}$/;
|
this.rePatternScriptletJsonArgs = /^\{.*\}$/;
|
||||||
this.reGoodRegexToken = /[^\x01%0-9A-Za-z][%0-9A-Za-z]{7,}|[^\x01%0-9A-Za-z][%0-9A-Za-z]{1,6}[^\x01%0-9A-Za-z]/;
|
this.reGoodRegexToken = /[^\x01%0-9A-Za-z][%0-9A-Za-z]{7,}|[^\x01%0-9A-Za-z][%0-9A-Za-z]{1,6}[^\x01%0-9A-Za-z]/;
|
||||||
this.reBadCSP = /(?:^|;)\s*report-(?:to|uri)\b/i;
|
this.reBadCSP = /(?:^|[;,])\s*report-(?:to|uri)\b/i;
|
||||||
this.reBadPP = /(?:^|;)\s*report-to\b/i;
|
this.reBadPP = /(?:^|[;,])\s*report-to\b/i;
|
||||||
this.reNoopOption = /^_+$/;
|
this.reNoopOption = /^_+$/;
|
||||||
this.scriptletArgListParser = new ArgListParser(',');
|
this.scriptletArgListParser = new ArgListParser(',');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user