Skip to content
Browse files

Issue 5833 (Cookies with UTF-8 values let all cookies disappear)

  • Loading branch information...
1 parent 8aebdbe commit 6405220a5011feac6ecc57c004a621eb208fecc9 @SebastianZ SebastianZ committed
Showing with 9 additions and 1 deletion.
  1. +9 −1 extension/content/firebug/cookies/cookieUtils.js
View
10 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,

0 comments on commit 6405220

Please sign in to comment.
Something went wrong with that request. Please try again.