mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix: Authorization header can be an empty string
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
8ec53608b0
commit
4d6b4b71c7
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ class Auth extends AbstractBasic {
|
|||
//Fix for broken webdav clients
|
||||
($this->userSession->isLoggedIn() && is_null($this->session->get(self::DAV_AUTHENTICATED))) ||
|
||||
//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() && empty($request->getHeader('Authorization'))) ||
|
||||
\OC_User::handleApacheAuth()
|
||||
) {
|
||||
$user = $this->userSession->getUser()->getUID();
|
||||
|
|
|
|||
Loading…
Reference in a new issue