Skip to content

Commit

Permalink
Request->getHeader('Authentication') returns ''
Browse files Browse the repository at this point in the history
causes ugly to debug bugs
  • Loading branch information
butonic authored and DeepDiver1975 committed Nov 25, 2019
1 parent 33a4d1c commit df89837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private function auth(RequestInterface $request, ResponseInterface $response) {
//Fix for broken webdav clients
($this->userSession->isLoggedIn() && $this->session->get(self::DAV_AUTHENTICATED) === null) ||
//Well behaved clients that only send the cookie are allowed
($this->userSession->isLoggedIn() && $this->session->get(self::DAV_AUTHENTICATED) === $this->userSession->getUser()->getUID() && $request->getHeader('Authorization') === null)
($this->userSession->isLoggedIn() && $this->session->get(self::DAV_AUTHENTICATED) === $this->userSession->getUser()->getUID() && ($request->getHeader('Authorization') === null || $request->getHeader('Authorization') === ''))
) {
$user = $this->userSession->getUser();
$this->checkAccountModule($user);
Expand Down

0 comments on commit df89837

Please sign in to comment.