[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 295/483: Fixed: Possible double escaping of the first character of the ID attribute

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:50 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 a107092e0b974e2d2161d6264df4f023ab945f94
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Thu Nov 4 16:03:32 2010 +0100

    Fixed: Possible double escaping of the first character of the ID attribute
---
 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 b3af1aa..f751602 100644
--- a/chrome/content/composer.js
+++ b/chrome/content/composer.js
@@ -266,7 +266,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);
           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