https://github.com/matomo-org/matomo/commit/813e637fa4c40cdafb1aa2780f7c5f22850ad2b8 - Mouve

Site d'origine

Permalink
Browse files

set secure and samesite for cookie on delete (#17255)

* set secure and samesite for cookie on delete

* set secure and samesite for cookie on delete
  • Loading branch information
flamisz committed Mar 2, 2021
1 parent fa0ab5d commit 813e637fa4c40cdafb1aa2780f7c5f22850ad2b8
Showing with 4 additions and 1 deletion.
  1. +4 −1 core/Cookie.php
@@ -176,7 +176,10 @@ protected function setP3PHeader()
public function delete()
{
$this->setP3PHeader();

$this->setCookie($this->name, 'deleted', time() - 31536001, $this->path, $this->domain);
$this->setCookie($this->name, 'deleted', time() - 31536001, $this->path, $this->domain, TRUE, FALSE, 'None');

$this->clear();
}

@@ -292,7 +295,7 @@ public function generateContentString()
} elseif (!is_numeric($value)) {
$value = base64_encode($value);
}
$cookieStrArr[] = "$name=$value";
$cookieStrArr[] = "$name=$value";
}

return implode(self::VALUE_SEPARATOR, $cookieStrArr);

0 comments on commit 813e637

Please sign in to comment.

Raccourcis

Commandes

Fermer