Only redirects the user to the default page if no specific page page was set in the querystring

(cherry picked from commit 57b2f31714)
This commit is contained in:
bechaire 2019-07-25 17:03:41 -03:00 committed by jim-p
parent c9451253d1
commit db95c2d855

View File

@ -93,12 +93,12 @@ if ((!empty($cpsession)) && (! $_POST['logout_id']) && (!empty($cpcfg['page']['l
return;
}
if (!empty($cpcfg['redirurl'])) {
$redirurl = $cpcfg['redirurl'];
} elseif (preg_match("/redirurl=(.*)/", $orig_request, $matches)) {
if (preg_match("/redirurl=(.*)/", $orig_request, $matches)) {
$redirurl = urldecode($matches[1]);
} elseif ($_REQUEST['redirurl']) {
$redirurl = $_REQUEST['redirurl'];
} elseif (!empty($cpcfg['redirurl'])) {
$redirurl = $cpcfg['redirurl'];
}
$macfilter = !isset($cpcfg['nomacfilter']);