diff options
author | Owen Winkler <a_github@midnightcircus.com> | 2013-11-07 09:07:30 -0800 |
---|---|---|
committer | Owen Winkler <a_github@midnightcircus.com> | 2013-11-07 09:07:30 -0800 |
commit | ea914b6f47e8af2dda247614e35f80f68773a293 (patch) | |
tree | 0437985ed3faa4664f7392bad1024feb3299c4ce /lib | |
parent | 349822d221bce8166fb024aefdcf04111e5f537a (diff) | |
parent | 99e5c6f7eb58404be2cc5448ec380f29c9a71225 (diff) | |
download | nextcloud-server-ea914b6f47e8af2dda247614e35f80f68773a293.tar.gz nextcloud-server-ea914b6f47e8af2dda247614e35f80f68773a293.zip |
Merge pull request #5723 from owncloud/stable5-strayremembermecookiesfix
Now removing stray old cookies from 5.0.12
Diffstat (limited to 'lib')
-rw-r--r-- | lib/user.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/user.php b/lib/user.php index 31be3f20db8..a161868c8c2 100644 --- a/lib/user.php +++ b/lib/user.php @@ -652,5 +652,10 @@ class OC_User { setcookie('oc_username', '', time()-3600, \OC::$WEBROOT); setcookie('oc_token', '', time()-3600, \OC::$WEBROOT); setcookie('oc_remember_login', '', time()-3600, \OC::$WEBROOT); + // old cookies might be stored under /webroot/ instead of /webroot + // and Firefox doesn't like it! + setcookie('oc_username', '', time()-3600, \OC::$WEBROOT . '/'); + setcookie('oc_token', '', time()-3600, \OC::$WEBROOT . '/'); + setcookie('oc_remember_login', '', time()-3600, \OC::$WEBROOT . '/'); } } |