aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-06-10 10:18:35 +0200
committerGitHub <noreply@github.com>2021-06-10 10:18:35 +0200
commit84c050c612c0f1ac7c6bb89bad5b1b53e409ae51 (patch)
treecde073d137c1ab2107ad14c8c04599c817595034 /apps
parentc0e123867671f7279bc9aa6384ee294421124460 (diff)
parentae772895118e26fe27f20f3aed2bd8985d64ccc6 (diff)
downloadnextcloud-server-84c050c612c0f1ac7c6bb89bad5b1b53e409ae51.tar.gz
nextcloud-server-84c050c612c0f1ac7c6bb89bad5b1b53e409ae51.zip
Merge pull request #27444 from nextcloud/header-colon
Header must contain a colon
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/PublicAuth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/PublicAuth.php b/apps/dav/lib/Connector/PublicAuth.php
index 74d65c1669f..55d2de72228 100644
--- a/apps/dav/lib/Connector/PublicAuth.php
+++ b/apps/dav/lib/Connector/PublicAuth.php
@@ -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;