diff --git a/share/pnp/application/models/auth_multisite.php b/share/pnp/application/models/auth_multisite.php index d4a3b41d..9d713401 100644 --- a/share/pnp/application/models/auth_multisite.php +++ b/share/pnp/application/models/auth_multisite.php @@ -56,7 +56,11 @@ private function checkAuthCookie($cookieName) { throw new Exception(); } - list($username, $issueTime, $cookieHash) = explode(':', $_COOKIE[$cookieName], 3); + $cookie = $_COOKIE[$cookieName]; + if ($cookie[0] == '"') { + $cookie = trim($cookie, '"'); + } + list($username, $issueTime, $cookieHash) = explode(':', $cookie, 3); if($this->authFile == 'htpasswd') $users = $this->loadAuthFile($this->htpasswdPath);