diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-06 15:57:17 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-06 15:57:17 +0100 |
commit | 7e2c3a820ef5c5557558bd9df5f7384a65f8c6eb (patch) | |
tree | cbc97ff3a0e84fd6c86786cfa37e949d0d378fdd /lib/private/Session/CryptoWrapper.php | |
parent | 3f4fb9dc89016e701678d6310281705a92fbe3e6 (diff) | |
download | nextcloud-server-7e2c3a820ef5c5557558bd9df5f7384a65f8c6eb.tar.gz nextcloud-server-7e2c3a820ef5c5557558bd9df5f7384a65f8c6eb.zip |
Remove the cookie paths for php<7.3
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Session/CryptoWrapper.php')
-rw-r--r-- | lib/private/Session/CryptoWrapper.php | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/lib/private/Session/CryptoWrapper.php b/lib/private/Session/CryptoWrapper.php index f7f26bb10d2..0f791a865d8 100644 --- a/lib/private/Session/CryptoWrapper.php +++ b/lib/private/Session/CryptoWrapper.php @@ -88,22 +88,18 @@ class CryptoWrapper { $webRoot = '/'; } - if (PHP_VERSION_ID < 70300) { - setcookie(self::COOKIE_NAME, $this->passphrase, 0, $webRoot, '', $secureCookie, true); - } else { - setcookie( - self::COOKIE_NAME, - $this->passphrase, - [ - 'expires' => 0, - 'path' => $webRoot, - 'domain' => '', - 'secure' => $secureCookie, - 'httponly' => true, - 'samesite' => 'Lax', - ] - ); - } + setcookie( + self::COOKIE_NAME, + $this->passphrase, + [ + 'expires' => 0, + 'path' => $webRoot, + 'domain' => '', + 'secure' => $secureCookie, + 'httponly' => true, + 'samesite' => 'Lax', + ] + ); } } } |