From 65fcbcb9ba46ab247bcc32469021f55e8d1f8361 Mon Sep 17 00:00:00 2001 From: HungryFeline Date: Tue, 2 Jul 2013 06:46:54 +0200 Subject: [PATCH] Actually set the cookie prefix When COOKIE_PREFIX was not shm (the default) the script tried to read cookies prefixed with the new prefix but the script was setting the old default prefix from before the constants were implemented. --- core/util.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index 42d285af..6dd9dbc3 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -713,7 +713,7 @@ function get_prefixed_cookie(/*string*/ $name) { */ function set_prefixed_cookie($name, $value, $time, $path) { global $config; - $full_name = $config->get_string('cookie_prefix','shm')."_".$name; + $full_name = COOKIE_PREFIX."_".$name; setcookie($full_name, $value, $time, $path); }