From 3821f3daa8d44ce2138a580bd8d5d2a67835d2e9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 6 Jul 2010 14:36:02 -0400 Subject: Oops, correct check --- etc/inc/auth.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/auth.inc') 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) -- cgit v1.1