-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Fix since checker #59940
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
base: master
Are you sure you want to change the base?
Fix since checker #59940
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,9 @@ | |
| */ | ||
| abstract class PublicShareController extends Controller { | ||
|
|
||
| /** | ||
| * @since 33.0.0 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needs adjustment on backport |
||
| */ | ||
| public const DAV_AUTHENTICATED_FRONTEND = 'public_link_authenticated_frontend'; | ||
|
|
||
| /** @var string */ | ||
|
|
@@ -118,6 +121,8 @@ public function shareNotFound() { | |
|
|
||
| /** | ||
| * Validate the token and password hash stored in session | ||
| * | ||
| * @since 33.0.0 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needs adjustment on backport |
||
| */ | ||
| protected function validateTokenSession(string $token, string $passwordHash): bool { | ||
| $allowedTokensJSON = $this->session->get(self::DAV_AUTHENTICATED_FRONTEND) ?? '[]'; | ||
|
|
@@ -131,6 +136,8 @@ protected function validateTokenSession(string $token, string $passwordHash): bo | |
|
|
||
| /** | ||
| * Store the token and password hash in session | ||
| * | ||
| * @since 33.0.0 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needs adjustment on backport |
||
| */ | ||
| protected function storeTokenSession(string $token, string $passwordHash = ''): void { | ||
| $allowedTokensJSON = $this->session->get(self::DAV_AUTHENTICATED_FRONTEND) ?? '[]'; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.