From fe49ec6cbc2401af1dd333503100f6deaf772224 Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Wed, 2 Sep 2020 12:29:12 +0200 Subject: [PATCH] refs #18279 [finc] unescape redirect URL --- module/finc/src/finc/Controller/MyResearchController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/finc/src/finc/Controller/MyResearchController.php b/module/finc/src/finc/Controller/MyResearchController.php index ff311d42b26..cb8dd23b4fc 100644 --- a/module/finc/src/finc/Controller/MyResearchController.php +++ b/module/finc/src/finc/Controller/MyResearchController.php @@ -59,6 +59,7 @@ class MyResearchController extends \VuFind\Controller\MyResearchController imple public function onDispatch(MvcEvent $e) { if ($redirect = $this->getRequest()->getQuery()->get('redirect')) { + $redirect = urldecode($redirect); //if we have a "redirect" param, the user should be lead to the given url, //at least as long as his login is successful //we achieve that by forcing the follow-up url to be the redirect -- GitLab