Skip to content

Commit

Permalink
Merge pull request #173 from ClemensRobbenhaar/master
Browse files Browse the repository at this point in the history
remove contingent quotes around the cookie value
  • Loading branch information
lingej authored Mar 20, 2021
2 parents 442c666 + 4d021dc commit 3e04088
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion share/pnp/application/models/auth_multisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e04088

Please sign in to comment.