Skip to content

Commit

Permalink
Merge pull request #27456 from nextcloud/backport/27444/stable20
Browse files Browse the repository at this point in the history
[stable20] Header must contain a colon
  • Loading branch information
ChristophWurst authored Jun 11, 2021
2 parents c800f37 + e0cbd27 commit f86beba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/PublicAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function validateUserPass($username, $password) {
if (in_array('XMLHttpRequest', explode(',', $this->request->getHeader('X-Requested-With')))) {
// do not re-authenticate over ajax, use dummy auth name to prevent browser popup
http_response_code(401);
header('WWW-Authenticate','DummyBasic realm="' . $this->realm . '"');
header('WWW-Authenticate: DummyBasic realm="' . $this->realm . '"');
throw new \Sabre\DAV\Exception\NotAuthenticated('Cannot authenticate over ajax calls');
}
return false;
Expand Down

0 comments on commit f86beba

Please sign in to comment.