summaryrefslogtreecommitdiff
path: root/share/www/script/futon.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2010-02-23 21:37:15 +0000
committerChristopher Lenz <cmlenz@apache.org>2010-02-23 21:37:15 +0000
commit21bf95639695e0a3a8379ff2a03a0061246870b0 (patch)
treef3d4a72f459aefe1c658995b5f05ff60aa383b2d /share/www/script/futon.js
parentb0c364febdda6e4e0c0cb57d99a2cc2607025a18 (diff)
Futon: Fix cookie storage for localhost. Closes COUCHDB-668. Thanks to Matt Goodall for the report and patch.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@915530 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/futon.js')
-rw-r--r--share/www/script/futon.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/futon.js b/share/www/script/futon.js
index 57a9aceb..752717e9 100644
--- a/share/www/script/futon.js
+++ b/share/www/script/futon.js
@@ -337,13 +337,13 @@
var date = new Date();
date.setTime(date.getTime() + 14*24*60*60*1000); // two weeks
document.cookie = cookiePrefix + name + "=" + escape(value) +
- "; domain=" + location.hostname + "; expires=" + date.toGMTString();
+ "; expires=" + date.toGMTString();
},
del: function(name) {
var date = new Date();
date.setTime(date.getTime() - 24*60*60*1000); // yesterday
- document.cookie = cookiePrefix + name + "=; domain=" +
- location.hostname + "; expires=" + date.toGMTString();
+ document.cookie = cookiePrefix + name + "=" +
+ "; expires=" + date.toGMTString();
}
},