Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2021-03-21 23:57:46 +0300
committerGitHub <noreply@github.com>2021-03-21 23:57:46 +0300
commit35994411bb9ffd56fe2c187db6105a76aff5563d (patch)
tree141315047afe88d1eb9227448698b51492a3ce8f
parentd01a55eb92fa92099ffc94cc799e58cb853a5965 (diff)
Ensure second parameter in gmdate is int, not float (#17365)
see https://forum.matomo.org/t/problem-with-the-two-factor-authentication-setting/41128/12? > WARNING: /Piwik/core/Cookie.php(155): Warning - gmdate() expects parameter 2 to be int, float given - Matomo 4.1.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: UsersManager, Action: setIgnoreCookie, In CLI mode: false)
-rw-r--r--core/Cookie.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Cookie.php b/core/Cookie.php
index 1e7ef7cf48..b1fb97ddc8 100644
--- a/core/Cookie.php
+++ b/core/Cookie.php
@@ -152,7 +152,7 @@ class Cookie
}
$header = 'Set-Cookie: ' . rawurlencode($Name) . '=' . rawurlencode($Value)
- . (empty($Expires) ? '' : '; expires=' . gmdate('D, d-M-Y H:i:s', $Expires) . ' GMT')
+ . (empty($Expires) ? '' : '; expires=' . gmdate('D, d-M-Y H:i:s', (int) $Expires) . ' GMT')
. (empty($Path) ? '' : '; path=' . $Path)
. (empty($Domain) ? '' : '; domain=' . rawurlencode($Domain))
. (!$Secure ? '' : '; secure')