Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #21 from bluesmoon/quoted-cookies

Quoted cookies
  • Loading branch information...
commit 25b790d4243dc6d052323a33ac16b52310caf8c0 2 parents e6b10b5 + 6ff78cd
@bluesmoon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 boomerang.js
View
4 boomerang.js
@@ -393,7 +393,7 @@ boomr = {
cookies = " " + d.cookie + ";";
if ( (i=cookies.indexOf(name)) >= 0 ) {
i += name.length;
- cookies = cookies.substring(i, cookies.indexOf(";", i));
+ cookies = cookies.substring(i, cookies.indexOf(";", i)).replace(/^"/, "").replace(/"$/, "");
return cookies;
}
@@ -409,7 +409,7 @@ boomr = {
}
value = this.objectToString(subcookies, "&");
- nameval = name + "=" + value;
+ nameval = name + "=\"" + value + "\"";
c = [nameval, "path=/", "domain=" + impl.site_domain];
if(max_age) {

0 comments on commit 25b790d

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