Skip to content

Commit

Permalink
Merge pull request #27444 from nextcloud/header-colon
Browse files Browse the repository at this point in the history
Header must contain a colon
  • Loading branch information
MorrisJobke authored Jun 10, 2021
2 parents c0e1238 + ae77289 commit 84c050c
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 @@ -109,7 +109,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 84c050c

Please sign in to comment.