From 92b049ee6d8811f8992b38434fd169fc40d43904 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 26 Aug 2020 11:39:42 +0200 Subject: [PATCH] pass referuri to controller --- op/op.Login.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/op/op.Login.php b/op/op.Login.php index ca4a8b714..1e10dd214 100644 --- a/op/op.Login.php +++ b/op/op.Login.php @@ -75,6 +75,7 @@ $session = new SeedDMS_Session($db); // TODO: by the PHP manual: The superglobals $_GET and $_REQUEST are already decoded. // Using urldecode() on an element in $_GET or $_REQUEST could have unexpected and dangerous results. +$referuri = ''; if (isset($_POST["referuri"]) && strlen($_POST["referuri"])>0) { $referuri = trim(urldecode($_POST["referuri"])); } @@ -88,6 +89,7 @@ $controller->setParam('login', $login); $controller->setParam('pwd', $pwd); $controller->setParam('lang', $lang); $controller->setParam('sesstheme', $sesstheme); +$controller->setParam('referuri', $referuri); $controller->setParam('session', $session); if(!$controller->run()) { add_log_line("login failed", PEAR_LOG_ERR);