Use sqsetcookie(), not setcookie()
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 24 Sep 2008 19:58:23 +0000 (19:58 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 24 Sep 2008 19:58:23 +0000 (19:58 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13285 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php
plugins/change_password/functions.php

index a54bcfe..e1d9ec8 100644 (file)
@@ -575,7 +575,7 @@ if (!function_exists('session_regenerate_id')) {
         if (ini_get('session.use_cookies')) {
             // at a later stage we use sqsetcookie. At this point just do
             // what session_regenerate_id would do
-            setcookie(session_name(), session_id(), NULL, $base_uri);
+            sqsetcookie(session_name(), session_id(), 0, $base_uri);
         }
         return TRUE;
     }
index f956ef7..5e65c4a 100644 (file)
@@ -101,7 +101,7 @@ function cpw_do_change()
     $onetimepad = OneTimePadCreate(strlen($newpw));
     sqsession_register($onetimepad,'onetimepad');
     $key = OneTimePadEncrypt($newpw, $onetimepad);
-    setcookie('key', $key, 0, $base_uri);
+    sqsetcookie('key', $key, 0, $base_uri);
 
     /* make sure we write the session data before we redirect */
     session_write_close();