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/AppFramework/Http | |
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/AppFramework/Http')
-rw-r--r-- | lib/private/AppFramework/Http/Output.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/private/AppFramework/Http/Output.php b/lib/private/AppFramework/Http/Output.php index 45d8d9b8c66..9f26d94b8aa 100644 --- a/lib/private/AppFramework/Http/Output.php +++ b/lib/private/AppFramework/Http/Output.php @@ -96,17 +96,13 @@ class Output implements IOutput { public function setCookie($name, $value, $expire, $path, $domain, $secure, $httpOnly, $sameSite = 'Lax') { $path = $this->webRoot ? : '/'; - if (PHP_VERSION_ID < 70300) { - setcookie($name, $value, $expire, $path, $domain, $secure, $httpOnly); - } else { - setcookie($name, $value, [ - 'expires' => $expire, - 'path' => $path, - 'domain' => $domain, - 'secure' => $secure, - 'httponly' => $httpOnly, - 'samesite' => $sameSite - ]); - } + setcookie($name, $value, [ + 'expires' => $expire, + 'path' => $path, + 'domain' => $domain, + 'secure' => $secure, + 'httponly' => $httpOnly, + 'samesite' => $sameSite + ]); } } |