From: pdontthink Date: Wed, 24 Sep 2008 19:58:23 +0000 (+0000) Subject: Use sqsetcookie(), not setcookie() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=73ee0267d9c4cf950e5cf5a204c4baffbb9c624e;p=squirrelmail.git Use sqsetcookie(), not setcookie() git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13285 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/global.php b/functions/global.php index a54bcfe1..e1d9ec8e 100644 --- a/functions/global.php +++ b/functions/global.php @@ -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; } diff --git a/plugins/change_password/functions.php b/plugins/change_password/functions.php index f956ef7f..5e65c4a2 100644 --- a/plugins/change_password/functions.php +++ b/plugins/change_password/functions.php @@ -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();