From 21bf95639695e0a3a8379ff2a03a0061246870b0 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Tue, 23 Feb 2010 21:37:15 +0000 Subject: 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 --- share/www/script/futon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'share') 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(); } }, -- cgit v1.2.3