summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-06 14:36:02 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-06 14:36:02 -0400
commit3821f3daa8d44ce2138a580bd8d5d2a67835d2e9 (patch)
treee7f313ede87a659a2b1bf01924cf6a5b6834329d /etc/inc
parentb6022a23920008186cb0e5e9206b43f4a84b3f37 (diff)
downloadpfsense-3821f3daa8d44ce2138a580bd8d5d2a67835d2e9.zip
pfsense-3821f3daa8d44ce2138a580bd8d5d2a67835d2e9.tar.gz
Oops, correct check
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/auth.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 462459f..9610190 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($dyndns['host'] == "localhost")
+ if($_SERVER['HTTP_HOST'] == "localhost" or $_SERVER['HTTP_HOST'] == "localhost")
$found_host = true;
if($config['dyndnses']['dyndns'])
foreach($config['dyndnses']['dyndns'] as $dyndns)
OpenPOWER on IntegriCloud