From 1de821d99b4d2fa9756fdd451823e0886cef3534 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 18 Jan 2019 19:07:31 -0500 Subject: [PATCH] Apply stricter rejection of usage of url() in :style rules --- src/js/static-ext-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-ext-filtering.js b/src/js/static-ext-filtering.js index 2ff97027e..135cb0980 100644 --- a/src/js/static-ext-filtering.js +++ b/src/js/static-ext-filtering.js @@ -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');