f5e1fc6e by Janis

Merge branch '17459_pci' into 'master'

17459_pci

See merge request !5
2 parents 5ceda9b9 9b45ff0a
......@@ -156,8 +156,10 @@ class FlagManager {
if(!$flags) return [];
foreach($flags as $flag){
$value = $this->checkFlag($flag, !empty($flag['default']) ? $flag['default'] : null);
setcookie($flag['name'], null, time() + (86400 * 30), "/");
setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/");
if(isset($_GET[$flag['name']])){
setcookie($flag['name'], null, time() + (86400 * 30), "/");
setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/");
}
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!