diff options
author | Ermal <eri@pfsense.org> | 2011-07-21 21:09:56 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-21 21:09:56 +0000 |
commit | adbb495cd692f3aeda39efddb15f02b6df46603f (patch) | |
tree | a374a8a4e89951ab6d0a623ce3ecc21a21a75001 /usr/local/captiveportal | |
parent | 006f5f164dd865213d0bbe8cd59c3ca43c13afd4 (diff) | |
download | pfsense-adbb495cd692f3aeda39efddb15f02b6df46603f.zip pfsense-adbb495cd692f3aeda39efddb15f02b6df46603f.tar.gz |
Fix redirurl collection so after login the user can be redirected correctly
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 0170a7a..e910779 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -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']); |