From 63df8354da7da5b7edc47432e84a9cb25de3f351 Mon Sep 17 00:00:00 2001 From: josh4trunks Date: Sun, 23 Mar 2014 20:05:06 -0700 Subject: [PATCH] Don't to set the cookie it wasn't needed. --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 2141695a93..28cc24f928 100644 --- a/lib/base.php +++ b/lib/base.php @@ -745,7 +745,7 @@ class OC { 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); - } else { + } 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); }