commit | 6dcee5a1f823a06fc26594f2c5faacca153b5c2d | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Tue Mar 26 10:45:29 2013 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue Mar 26 10:45:29 2013 +0530 |
tree | 7292f04280b3690bfd63377749034f5cabb6ee6e | |
parent | 82be7dc301eea2806d50535fb5668f9aeccd1791 [diff] |
fixes in website utils
diff --git a/public/js/website_utils.js b/public/js/website_utils.js index a33eee0..d1b5ab7 100644 --- a/public/js/website_utils.js +++ b/public/js/website_utils.js
@@ -127,7 +127,7 @@ var parts = cookie.split(/=/, 2), name = decodeURIComponent(parts[0].trimLeft()), value = parts.length > 1 ? decodeURIComponent(parts[1].trimRight()) : null; - if(value.charAt(0)==='"') { + if(value && value.charAt(0)==='"') { value = value.substr(1, value.length-2); } cookies[name] = value;