mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
c9451253d1
commit
db95c2d855
@ -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']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user