diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 23:09:31 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-05-21 23:09:31 -0400 |
commit | 3bc77cd3700528a3f432441556ccedff205aa68f (patch) | |
tree | 30035b321de6a8fc3b30c9d99c9bee440186fc3f /usr/local/captiveportal | |
parent | 979f35f364fe1be6cbaeb38d881713d49683c739 (diff) | |
download | pfsense-3bc77cd3700528a3f432441556ccedff205aa68f.zip pfsense-3bc77cd3700528a3f432441556ccedff205aa68f.tar.gz |
Do not allow nonstop redirects to self
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 2 |
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 { |