summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/index.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-21 21:09:56 +0000
committerErmal <eri@pfsense.org>2011-07-21 21:09:56 +0000
commitadbb495cd692f3aeda39efddb15f02b6df46603f (patch)
treea374a8a4e89951ab6d0a623ce3ecc21a21a75001 /usr/local/captiveportal/index.php
parent006f5f164dd865213d0bbe8cd59c3ca43c13afd4 (diff)
downloadpfsense-adbb495cd692f3aeda39efddb15f02b6df46603f.zip
pfsense-adbb495cd692f3aeda39efddb15f02b6df46603f.tar.gz
Fix redirurl collection so after login the user can be redirected correctly
Diffstat (limited to 'usr/local/captiveportal/index.php')
-rwxr-xr-xusr/local/captiveportal/index.php8
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']);
OpenPOWER on IntegriCloud