Squirrelmail 1.5.1
Php 5.0.4
Apache 2.0.54
Courrier-Imap 3.0.8
IE5/Mac 5.23 on OSX 10.3.9
On IE5/Mac you get the logon screen, enter the details
and then get taken to a page which says "you must be
logged in to access this page"
Cookies are enabled, however when looking at the
cookies the ones orginating from squirremail are always
set as "Disabled", and cannot be forced to be enabled.
I have tracked this down to the 'httpOnly' attribute.
The following patch fixes the problem in my setup
(apply to functions/global.php) :
--- global.php.old 2006-08-10 11:07:03.624249750 +0100
+++ global.php 2006-08-10 10:42:18.907460750 +0100
@@ -276,6 +276,12 @@
* @return void
*/
function
sqsetcookie($sName,$sValue,$iExpire=false,$sPath="",$sDomain="",$bSecure=false,$bHttpOnly=true)
{
+ $client = strtolower($_SERVER['HTTP_USER_AGENT']);
+ $isiemac = ereg("msie", $client) && ereg("mac",
$client);
+ if ($isiemac) {
+ $bHttpOnly = false;
+ }
+
$sHeader = "Set-Cookie: $sName=$sValue";
if ($sPath) {
$sHeader .= "; path=$sPath";
Logged In: YES
user_id=225877
[1475569] Login Problem MacOS 9.x SquirrelMail 1.5.1
Code is not enabled in 1.5.2cvs, because PHP updates broke it.