couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r915530 - /couchdb/trunk/share/www/script/futon.js
Date Tue, 23 Feb 2010 21:37:15 GMT
Author: cmlenz
Date: Tue Feb 23 21:37:15 2010
New Revision: 915530

URL: http://svn.apache.org/viewvc?rev=915530&view=rev
Log:
Futon: Fix cookie storage for localhost. Closes COUCHDB-668. Thanks to Matt Goodall for the
report and patch.

Modified:
    couchdb/trunk/share/www/script/futon.js

Modified: couchdb/trunk/share/www/script/futon.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.js?rev=915530&r1=915529&r2=915530&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.js (original)
+++ couchdb/trunk/share/www/script/futon.js Tue Feb 23 21:37:15 2010
@@ -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();
         }
       },
 



Mime
View raw message