[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 18/483: Fix escaping of "custom CSS" field as well
David Prévot
taffit at moszumanska.debian.org
Thu Jan 22 21:41:22 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 da9f01a29d84ab215751b6202b8e6edf2f4cc4f2
Author: Wladimir Palant <trev at gtchat.de>
Date: Tue Jan 9 13:59:57 2007 +0000
Fix escaping of "custom CSS" field as well
--HG--
extra : convert_revision : svn%3Ad8bf93c1-8190-44a8-bb31-1ea94378a4df/trunk%40615
---
chrome/content/composer.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/content/composer.js b/chrome/content/composer.js
index 765fb86..ca64414 100644
--- a/chrome/content/composer.js
+++ b/chrome/content/composer.js
@@ -143,7 +143,9 @@ function updateExpression() {
if (curNode.customCSS.checked && curNode.customCSS.selected != "") {
expressionSimple = null;
- expressionRaw += curNode.customCSS.selected;
+ expressionRaw += curNode.customCSS.selected
+ .replace(/\{/, "\\7B ")
+ .replace(/\}/, "\\7D ");
}
curNode.expressionSimple = expressionSimple;
--
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