1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-14 23:12:28 +02:00

Apply stricter rejection of usage of url() in :style rules

This commit is contained in:
Raymond Hill 2019-01-18 19:07:31 -05:00
parent 0377018fa3
commit 1de821d99b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -636,7 +636,7 @@
api.compileSelector = (function() {
const reAfterBeforeSelector = /^(.+?)(::?after|::?before|::[a-z-]+)$/;
const reStyleSelector = /^(.+?):style\((.+?)\)$/;
const reStyleBad = /url\([^)]+\)/;
const reStyleBad = /url\(/;
const reExtendedSyntax = /\[-(?:abp|ext)-[a-z-]+=(['"])(?:.+?)(?:\1)\]/;
const reExtendedSyntaxParser = /\[-(?:abp|ext)-([a-z-]+)=(['"])(.+?)\2\]/;
const div = document.createElement('div');