From 99e5c6f7eb58404be2cc5448ec380f29c9a71225 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 6 Nov 2013 17:37:35 +0100 Subject: Now removing stray old cookies from 5.0.12 Cookies from 5.0.12 seemed to have an extra slash in the path. Firefox doesn't allow to remove them if the trailing slash isn't there, thus making it impossible to logout correctly. This fix adds extra code to delete such stray cookies. --- lib/user.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 . '/'); } } -- cgit v1.2.3