summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Winkler <a_github@midnightcircus.com>2013-11-07 09:07:30 -0800
committerOwen Winkler <a_github@midnightcircus.com>2013-11-07 09:07:30 -0800
commitea914b6f47e8af2dda247614e35f80f68773a293 (patch)
tree0437985ed3faa4664f7392bad1024feb3299c4ce /lib
parent349822d221bce8166fb024aefdcf04111e5f537a (diff)
parent99e5c6f7eb58404be2cc5448ec380f29c9a71225 (diff)
downloadnextcloud-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.php5
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 . '/');
}
}