Skip to content

Commit f1867a4

Browse files
alexander-rebelloChartman123
authored andcommitted
Fix minor PageController behavior
1 parent 8dc7e3d commit f1867a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/PageController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function internalLinkView(string $hash): Response {
148148
#[NoAdminRequired()]
149149
#[NoCSRFRequired()]
150150
#[PublicPage()]
151-
#[FrontpageRoute(verb: 'GET', url: '/s/{hash}', requirements: ['hash' => '[a-zA-Z0-9]{24,}'])]
151+
#[FrontpageRoute(verb: 'GET', url: '/s/{hash}', requirements: ['hash' => Constants::PUBLIC_SHARE_HASH_REQUIREMENT])]
152152
public function publicLinkView(string $hash): Response {
153153
try {
154154
$share = $this->shareMapper->findPublicShareByHash($hash);

0 commit comments

Comments
 (0)