diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-07-06 14:55:16 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-07-06 14:55:16 -0400 |
commit | c8dc187cef7d38eec89f91867805c50d08d94089 (patch) | |
tree | 8d1c84e2048374e17a760aa70c8f62e9bdec991d /etc | |
parent | c371754a804e7a98edbfc3353c2e109a65ae3f8d (diff) | |
download | pfsense-c8dc187cef7d38eec89f91867805c50d08d94089.zip pfsense-c8dc187cef7d38eec89f91867805c50d08d94089.tar.gz |
Correct check
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/auth.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index c5616ba..ad53553 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -54,7 +54,7 @@ require_once("config.gui.inc"); if (function_exists("display_error_form")) { /* DNS ReBinding attack prevention. http://redmine.pfsense.org/issues/708 */ $found_host = false; - if($_SERVER['HTTP_HOST'] == "localhost" or $_SERVER['HTTP_HOST'] == "localhost") + if($_SERVER['HTTP_HOST'] == "localhost" or $_SERVER['SERVER_ADDR'] == "localhost") $found_host = true; if($_SERVER['HTTP_HOST'] == "127.0.0.1" or $_SERVER['SERVER_ADDR'] == "127.0.0.1") $found_host = true; |