|
@@ -105,7 +105,7 @@ discard block |
|
|
block discarded – undo |
|
105
|
105
|
|
|
106
|
106
|
// in fine renommer le prefixe si besoin |
|
107
|
107
|
if (strpos($name, 'spip_') === 0) { |
|
108
|
|
- $name = $GLOBALS['cookie_prefix'] . '_' . substr($name, 5); |
|
|
108
|
+ $name = $GLOBALS['cookie_prefix'].'_'.substr($name, 5); |
|
109
|
109
|
} |
|
110
|
110
|
|
|
111
|
111
|
#spip_log("cookie('$name', '$value', " . json_encode($options, true) . ")", "cookies"); |
|
@@ -163,7 +163,7 @@ discard block |
|
|
block discarded – undo |
|
163
|
163
|
} |
|
164
|
164
|
foreach ($_COOKIE as $name => $value) { |
|
165
|
165
|
if (substr($name, 0, $prefix_long) == $cookie_prefix) { |
|
166
|
|
- $spipname = preg_replace('/^' . $cookie_prefix . '_/', 'spip_', $name); |
|
|
166
|
+ $spipname = preg_replace('/^'.$cookie_prefix.'_/', 'spip_', $name); |
|
167
|
167
|
$_COOKIE[$spipname] = $value; |
|
168
|
168
|
$GLOBALS[$spipname] = $value; |
|
169
|
169
|
} |
Please login to merge, or discard this patch.