diff options
author | josh4trunks <joshruehlig@gmail.com> | 2014-03-23 20:05:06 -0700 |
---|---|---|
committer | josh4trunks <joshruehlig@gmail.com> | 2014-04-03 22:12:57 -0700 |
commit | 63df8354da7da5b7edc47432e84a9cb25de3f351 (patch) | |
tree | 8dbb99bf45de2539598d3865c406e9c9a0bcd6d3 /lib | |
parent | 4ddf5d92f24121f4fdc3af48cca17724f6f4aea6 (diff) | |
download | nextcloud-server-63df8354da7da5b7edc47432e84a9cb25de3f351.tar.gz nextcloud-server-63df8354da7da5b7edc47432e84a9cb25de3f351.zip |
Don't to set the cookie it wasn't needed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 2141695a93d..28cc24f9287 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); } |