File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1564,14 +1564,15 @@ Parser.prototype.SelectorCompiler = class {
1564
1564
1565
1565
// https://github.com/uBlockOrigin/uBlock-issues/issues/668
1566
1566
// https://github.com/uBlockOrigin/uBlock-issues/issues/1693
1567
+ // https://github.com/uBlockOrigin/uBlock-issues/issues/1811
1567
1568
// Forbid instances of:
1568
1569
// - `image-set(`
1569
1570
// - `url(`
1570
1571
// - any instance of `//`
1571
1572
// - backslashes `\`
1572
1573
// - opening comment `/*`
1573
1574
compileStyleProperties ( s ) {
1574
- if ( / i m a g e - s e t \( | u r l \( | \/ \/ | \\ | \/ \* / i. test ( s ) ) { return ; }
1575
+ if ( / i m a g e - s e t \( | u r l \( | \/ \s * \ /| \\ | \/ \* / i. test ( s ) ) { return ; }
1575
1576
if ( this . stylesheet === null ) { return s ; }
1576
1577
let valid = false ;
1577
1578
try {
You can’t perform that action at this time.
0 commit comments