[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 332/483: Topic 7718 - Wrong filter suggested for id attributes ending with whitespace

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit e3eab9651148d66f89ac93b89c13227a54ef1f3b
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Jun 3 20:49:02 2011 +0200

    Topic 7718 - Wrong filter suggested for id attributes ending with whitespace
---
 chrome/content/composer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/composer.js b/chrome/content/composer.js
index a021354..7e5e06a 100644
--- a/chrome/content/composer.js
+++ b/chrome/content/composer.js
@@ -273,7 +273,7 @@ function updateExpression()
   
           let useFallback = false;
           if (attr.name == "id" && op == "=")
-            expression += "#" + escapeName(attr.selected).replace(/^([^a-zA-Z\\])/, escapeChar);
+            expression += "#" + escapeName(attr.selected).replace(/^([^a-zA-Z\\])/, escapeChar).replace(/\\(\s)$/, escapeChar);
           else if (attr.name == "class" && /\S/.test(attr.selected))
           {
             let knownClasses = {};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list