diff options
author | Ermal <eri@pfsense.org> | 2011-07-21 21:09:56 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-21 21:10:48 +0000 |
commit | 8380e83395c97219127515d4dc87d59cb3bbd147 (patch) | |
tree | a65c723c5c97e15685c0ba9444982fc88c23eff4 /usr/local/captiveportal | |
parent | c7b5a8cf2e14ead5f2d201eab362520a9459aa05 (diff) | |
download | pfsense-8380e83395c97219127515d4dc87d59cb3bbd147.zip pfsense-8380e83395c97219127515d4dc87d59cb3bbd147.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 b08a358..1bd9366 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']); |