mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix redirurl collection so after login the user can be redirected correctly
This commit is contained in:
parent
006f5f164d
commit
adbb495cd6
@ -77,12 +77,12 @@ if ($orig_host != $ourhostname) {
|
||||
|
||||
exit;
|
||||
}
|
||||
if (preg_match("/redirurl=(.*)/", $orig_request, $matches))
|
||||
$redirurl = urldecode($matches[1]);
|
||||
if ($_POST['redirurl'])
|
||||
$redirurl = $_POST['redirurl'];
|
||||
if (!empty($config['captiveportal']['redirurl']))
|
||||
$redirurl = $config['captiveportal']['redirurl'];
|
||||
else if (preg_match("/redirurl=(.*)/", $orig_request, $matches))
|
||||
$redirurl = urldecode($matches[1]);
|
||||
else if ($_REQUEST['redirurl'])
|
||||
$redirurl = $_REQUEST['redirurl'];
|
||||
|
||||
$macfilter = !isset($config['captiveportal']['nomacfilter']);
|
||||
$passthrumac = isset($config['captiveportal']['passthrumacadd']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user