Skip to content

Commit

Permalink
Fixed cookie prefix on "all" selection
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Mar 16, 2023
1 parent d67e4ba commit 868939c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/CookiesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CookiesController extends Controller {
public function accept_all_cookies(): RedirectResponse {
$this->set_cookies_consent_basic_cookie();
foreach (config('cookies_consent.cookies') as $cookie_key) {
$this->set_cookie('cookies_consent_cookie_' . $cookie_key);
$this->set_cookie('cookies_consent_' . $cookie_key);
}

return redirect()->back()->withCookies(Cookie::getQueuedCookies());
Expand Down

0 comments on commit 868939c

Please sign in to comment.