mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #27444 from nextcloud/header-colon
Header must contain a colon
This commit is contained in:
commit
84c050c612
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ class PublicAuth extends AbstractBasic {
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue