summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-05-21 23:09:31 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-05-21 23:09:31 -0400
commit3bc77cd3700528a3f432441556ccedff205aa68f (patch)
tree30035b321de6a8fc3b30c9d99c9bee440186fc3f /usr/local/captiveportal
parent979f35f364fe1be6cbaeb38d881713d49683c739 (diff)
downloadpfsense-3bc77cd3700528a3f432441556ccedff205aa68f.zip
pfsense-3bc77cd3700528a3f432441556ccedff205aa68f.tar.gz
Do not allow nonstop redirects to self
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 4908371..904f268 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -458,7 +458,7 @@ document.location.href="{$my_redirurl}";
EOD;
} else {
- if($_POST['ORIGINAL_PORTAL_IP']) {
+ 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 {
OpenPOWER on IntegriCloud