summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorjosh4trunks <joshruehlig@gmail.com>2014-03-23 21:39:29 -0700
committerjosh4trunks <joshruehlig@gmail.com>2014-04-03 22:12:57 -0700
commitd1106f17491e3a0da623f9b325e2eaf3aa4af491 (patch)
treeecc86ad3c836934849091364cb07b4dcfb657551 /lib/base.php
parent63df8354da7da5b7edc47432e84a9cb25de3f351 (diff)
downloadnextcloud-server-d1106f17491e3a0da623f9b325e2eaf3aa4af491.tar.gz
nextcloud-server-d1106f17491e3a0da623f9b325e2eaf3aa4af491.zip
cookie would be useless if value is not set
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 28cc24f9287..e86894ef290 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -744,7 +744,7 @@ class OC {
$cookie_path = OC::$WEBROOT ? : '/';
if (isset($_COOKIE['oc_ignore_php_auth_user'])) {
// Ignore HTTP Authentication for 5 more mintues.
- setcookie('oc_ignore_php_auth_user', '', time() + 300, $cookie_path);
+ setcookie('oc_ignore_php_auth_user', $_SERVER['PHP_AUTH_USER'], time() + 300, $cookie_path);
} elseif ($_SERVER['PHP_AUTH_USER'] === self::$session->get('loginname')) {
// Ignore HTTP Aunthentication to allow a different user to log in.
setcookie('oc_ignore_php_auth_user', $_SERVER['PHP_AUTH_USER'], 0, $cookie_path);