summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/index.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-08-24 18:05:37 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-08-24 18:06:06 -0400
commitc7cdfe2037f07f26b4d8554dab8cdcb65df47a8c (patch)
tree608b9ad84a5089df3e01382728d1362043293360 /usr/local/captiveportal/index.php
parente80c551c2efcb99fbd46ad9125417bdaada19603 (diff)
downloadpfsense-c7cdfe2037f07f26b4d8554dab8cdcb65df47a8c.zip
pfsense-c7cdfe2037f07f26b4d8554dab8cdcb65df47a8c.tar.gz
Remove ORIGINAL_PORTAL_IP option. Never did get it working correctly.
Diffstat (limited to 'usr/local/captiveportal/index.php')
-rwxr-xr-xusr/local/captiveportal/index.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 6316d0c..79a9fa6 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -486,12 +486,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
include("{$g['varetc_path']}/captiveportal-logout.html");
} else {
- if($_POST['ORIGINAL_PORTAL_IP'] && $_SERVER['SERVER_NAME'] != $_POST['ORIGINAL_PORTAL_IP']) {
- header ('HTTP/1.1 301 Moved Permanently');
- header("Location: " . $_POST['ORIGINAL_PORTAL_IP']);
- } else {
- header("Location: " . $my_redirurl);
- }
+ header("Location: " . $my_redirurl);
}
return $sessionid;
OpenPOWER on IntegriCloud