Skip to content

Commit

Permalink
Fixed other arbitrary cookie bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
DungFu committed Aug 7, 2011
1 parent df9ab71 commit 956dbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nowUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var util = {
var index;
for (var i = 0; i < match.length; i++) {
index = match[i].indexOf('=');
jsonCookie[match[i].substring(0, index)] = match[i].substring(index + 1, match[i].length - 1);
jsonCookie[match[i].substring(0, index)] = match[i].substring(index + 1, match[i].length - (match[i].indexOf(';') ? 1: 0));
}
return jsonCookie;
},
Expand Down

0 comments on commit 956dbc0

Please sign in to comment.