diff options
author | MartB <mart.b@outlook.de> | 2018-09-06 20:34:16 +0200 |
---|---|---|
committer | MartB <mart.b@outlook.de> | 2018-09-06 20:34:16 +0200 |
commit | fe21b10de59edfd95bd50f5b3c65e444cd717788 (patch) | |
tree | 2bec50d45235319e94ae3af212a25624fdd6a634 /lib/private/Session | |
parent | bf630e46f62c8ab6ec37f5d169cb2b75711028df (diff) | |
download | nextcloud-server-fe21b10de59edfd95bd50f5b3c65e444cd717788.tar.gz nextcloud-server-fe21b10de59edfd95bd50f5b3c65e444cd717788.zip |
replace setcookie value with '' instead of null.
The php documentation states that an empty string should be used for a cookie when it has no real value.
null leads to the following error: expects parameter 2 to be string, null given
Signed-off-by: Martin Böh <mart.b@outlook.de>
Diffstat (limited to 'lib/private/Session')
-rw-r--r-- | lib/private/Session/Internal.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index 182754f457c..6d09a2fab1b 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -54,7 +54,7 @@ class Internal extends Session { try { $this->invoke('session_start'); } catch (\Exception $e) { - setcookie($this->invoke('session_name'), null, -1, \OC::$WEBROOT ?: '/'); + setcookie($this->invoke('session_name'), '', -1, \OC::$WEBROOT ?: '/'); } restore_error_handler(); if (!isset($_SESSION)) { |