Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] fix: Authorization header can be an empty string #46212

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jul 1, 2024

Backport of PR #46184

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@@ -211,7 +211,7 @@
//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'))) ||

Check notice

Code scanning / Psalm

PossiblyNullReference Note

Cannot call method getUID on possibly null value
@nickvergessen nickvergessen merged commit adaf85a into stable29 Jul 4, 2024
174 of 177 checks passed
@nickvergessen nickvergessen deleted the backport/46184/stable29 branch July 4, 2024 10:18
@Altahrim Altahrim mentioned this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants