Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 6405220a5011feac6ecc57c004a621eb208fecc9 1 parent 8aebdbe
Sebastian Zartner authored August 19, 2012
10  extension/content/firebug/cookies/cookieUtils.js
@@ -36,9 +36,17 @@ var CookieUtils =
36 36
         if (value)
37 37
             value = value.replace(/\+/g, " ");
38 38
 
  39
+        value = unescape(value);
  40
+
  41
+        try
  42
+        {
  43
+            value = Str.convertToUnicode(value);
  44
+        }
  45
+        catch (exc) { }
  46
+
39 47
         var c = {
40 48
             name        : cookie.name,
41  
-            value       : Str.convertToUnicode(unescape(value)),
  49
+            value       : value,
42 50
             isDomain    : cookie.isDomain,
43 51
             host        : cookie.host,
44 52
             path        : cookie.path,

0 notes on commit 6405220

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