Commit 3b3d494b authored by Davide Aprea's avatar Davide Aprea

improved duplicate check on cookie creation

parent 9e2acd7e
......@@ -301,11 +301,11 @@ class SettingsController extends Controller
if(!empty($cookies)){
foreach ($cookies as $key => $value) {
if($value==$blacklist){
if(stripos($key, $fokus.'_blpage') === 0 && $value == $blacklist){
$noduplicate = false;
break;
}
if(stripos($key, 'blpage') !== false) {
if(stripos($key, $fokus.'_blpage') === 0) {
$cookieCounter++;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment