[Pkg-mozext-commits] [firebug] 14/28: Issue 5833 (Cookies with UTF-8 values let all cookies disappear) http://code.google.com/p/fbug/issues/detail?id=5833
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:46:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag firebug-1.10.3
in repository firebug.
commit 05417c1d3a14e6ec097fb37ee9fedcb591f00961
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date: Sun Aug 19 02:48:04 2012 +0200
Issue 5833 (Cookies with UTF-8 values let all cookies disappear)
http://code.google.com/p/fbug/issues/detail?id=5833
---
extension/content/firebug/cookies/cookieUtils.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/cookies/cookieUtils.js b/extension/content/firebug/cookies/cookieUtils.js
index 9a2ed28..57fa879 100644
--- a/extension/content/firebug/cookies/cookieUtils.js
+++ b/extension/content/firebug/cookies/cookieUtils.js
@@ -36,9 +36,17 @@ var CookieUtils =
if (value)
value = value.replace(/\+/g, " ");
+ value = unescape(value);
+
+ try
+ {
+ value = Str.convertToUnicode(value);
+ }
+ catch (exc) { }
+
var c = {
name : cookie.name,
- value : Str.convertToUnicode(unescape(value)),
+ value : value,
isDomain : cookie.isDomain,
host : cookie.host,
path : cookie.path,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list