mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #59867 from nextcloud/fix/public-share-download-redirect-trailing-question-mark
fix(files_sharing): Drop trailing '?' from public download redirect URL
This commit is contained in:
commit
07616938a8
1 changed files with 3 additions and 1 deletions
|
|
@ -401,7 +401,9 @@ class ShareController extends AuthPublicShareController {
|
|||
}
|
||||
|
||||
$davUrl = '/public.php/dav/files/' . $token . $davPath;
|
||||
$davUrl .= '?' . http_build_query($params);
|
||||
if (!empty($params)) {
|
||||
$davUrl .= '?' . http_build_query($params);
|
||||
}
|
||||
return new RedirectResponse($this->urlGenerator->getAbsoluteURL($davUrl));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue