From 1c670cb3d9e6a58c2a2fa229a1c799ee0d41bae8 Mon Sep 17 00:00:00 2001 From: acsfer Date: Wed, 9 Jun 2021 16:20:55 +0200 Subject: [PATCH] Header must contain a colon --- apps/dav/lib/Connector/PublicAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/PublicAuth.php b/apps/dav/lib/Connector/PublicAuth.php index c7de392dbb1..0aab95b8158 100644 --- a/apps/dav/lib/Connector/PublicAuth.php +++ b/apps/dav/lib/Connector/PublicAuth.php @@ -111,7 +111,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;