Skip to content

Commit

Permalink
Update controllers/front/FrontAjaxGdpr.php
Browse files Browse the repository at this point in the history
Co-authored-by: Maxime Flasquin <maxime-flasquin.ext@prestashop.com>
  • Loading branch information
Markus-Gurkcity and mflasquin authored Jan 31, 2023
1 parent 3df7e29 commit bca23f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/front/FrontAjaxGdpr.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function display()
}
} else {
$token = sha1('psgdpr' . Context::getContext()->cart->id_guest . $_SERVER['REMOTE_ADDR'] . date('Y-m-d'));
if ($guest_token == $token) {
if ($guest_token === $token) {
GDPRLog::addLog($id_customer, 'consent', $id_module, $id_guest);
}
}
Expand Down

0 comments on commit bca23f8

Please sign in to comment.