mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 08:52:26 +02:00
Apply stricter rejection of usage of url() in :style rules
This commit is contained in:
parent
0377018fa3
commit
1de821d99b
@ -636,7 +636,7 @@
|
|||||||
api.compileSelector = (function() {
|
api.compileSelector = (function() {
|
||||||
const reAfterBeforeSelector = /^(.+?)(::?after|::?before|::[a-z-]+)$/;
|
const reAfterBeforeSelector = /^(.+?)(::?after|::?before|::[a-z-]+)$/;
|
||||||
const reStyleSelector = /^(.+?):style\((.+?)\)$/;
|
const reStyleSelector = /^(.+?):style\((.+?)\)$/;
|
||||||
const reStyleBad = /url\([^)]+\)/;
|
const reStyleBad = /url\(/;
|
||||||
const reExtendedSyntax = /\[-(?:abp|ext)-[a-z-]+=(['"])(?:.+?)(?:\1)\]/;
|
const reExtendedSyntax = /\[-(?:abp|ext)-[a-z-]+=(['"])(?:.+?)(?:\1)\]/;
|
||||||
const reExtendedSyntaxParser = /\[-(?:abp|ext)-([a-z-]+)=(['"])(.+?)\2\]/;
|
const reExtendedSyntaxParser = /\[-(?:abp|ext)-([a-z-]+)=(['"])(.+?)\2\]/;
|
||||||
const div = document.createElement('div');
|
const div = document.createElement('div');
|
||||||
|
Loading…
Reference in New Issue
Block a user