diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-04-10 08:50:15 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-04-15 09:30:10 +0000 |
commit | 8d72a2adef0f858bef4bcbc4f8f8944dc80a82f6 (patch) | |
tree | dcae7588c692ca809a981ea25a2484c6caa8c06b /core/Controller | |
parent | 7d412b5733add714f589b761fa36fcc98039c2eb (diff) | |
download | nextcloud-server-8d72a2adef0f858bef4bcbc4f8f8944dc80a82f6.tar.gz nextcloud-server-8d72a2adef0f858bef4bcbc4f8f8944dc80a82f6.zip |
Fix absolute redirect
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/LoginController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index 13aef8f67ab..6446941ff9c 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -253,7 +253,7 @@ class LoginController extends Controller { private function generateRedirect(?string $redirectUrl): RedirectResponse { if ($redirectUrl !== null && $this->userSession->isLoggedIn()) { - $location = $this->urlGenerator->getAbsoluteURL(urldecode($redirectUrl)); + $location = $this->urlGenerator->getAbsoluteURL($redirectUrl); // Deny the redirect if the URL contains a @ // This prevents unvalidated redirects like ?redirect_url=:user@domain.com if (strpos($location, '@') === false) { |