[Phpfreechat-svn] SF.net SVN: phpfreechat: [1029] trunk/data/public/js/compat.js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-06-07 09:50:35
|
Revision: 1029 http://svn.sourceforge.net/phpfreechat/?rev=1029&view=rev Author: kerphi Date: 2007-06-07 02:50:35 -0700 (Thu, 07 Jun 2007) Log Message: ----------- [en] Bug fix: workaround for Firefox when 'HTTP only' cookies are in use like in IPB (thanks to Karl Buckland) [fr] Bug fix : contournement d'un probl?\195?\168me dans Firefox avec les 'HTTP only cookies' qui sont utilis?\195?\169s dans IPB (merci ?\195?\160 Karl Buckland) Modified Paths: -------------- trunk/data/public/js/compat.js Modified: trunk/data/public/js/compat.js =================================================================== --- trunk/data/public/js/compat.js 2007-05-20 19:58:45 UTC (rev 1028) +++ trunk/data/public/js/compat.js 2007-06-07 09:50:35 UTC (rev 1029) @@ -3,6 +3,9 @@ { read: function (name) { + // Work around for Firefox when 'HTTP only' cookies are in use + if (typeof(document.cookie) != "string" && navigator.product == "Gecko") delete HTMLDocument.prototype.cookie; + var arrCookies = document.cookie.split ('; '); for (var i=0; i<arrCookies.length; i++) { @@ -18,6 +21,9 @@ write: function (name, value, expires, path) { + // Work around for Firefox when 'HTTP only' cookies are in use + if (typeof(document.cookie) != "string" && navigator.product == "Gecko") delete HTMLDocument.prototype.cookie; + if (expires) { var date = new Date (); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |