summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-30 12:54:18 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-30 12:54:18 -0400
commit52013892c23e416f468c42a502a7ff092ff76bbc (patch)
treef14d4ce4c8f46fce4228a4798bdaea9ad7d934f1
parent7fcef70f1caf46c9277a48700c582ece0a3acd19 (diff)
downloadpfsense-52013892c23e416f468c42a502a7ff092ff76bbc.zip
pfsense-52013892c23e416f468c42a502a7ff092ff76bbc.tar.gz
Correctly check dyndns hosts on 1.2.3 dns rebinding checks
-rw-r--r--etc/inc/auth.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 0d288ef..55aeff2 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -51,10 +51,9 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][
if(is_ipaddr($http_host) or $_SERVER['SERVER_ADDR'] == "127.0.0.1" or
$http_host == "localhost" or $_SERVER['SERVER_ADDR'] == "localhost")
$found_host = true;
- if($config['dyndnses']['dyndns'])
- foreach($config['dyndnses']['dyndns'] as $dyndns)
- if($dyndns['host'] == $http_host or $dyndns['host'] == $_SERVER['SERVER_ADDR'])
- $found_host = true;
+ if (($config['dyndns']) and ($config['dyndns']['host'] == $http_host or
+ $config['dyndns']['host'] == $_SERVER['SERVER_ADDR']))
+ $found_host = true;
if(!empty($config['system']['webgui']['althostnames'])) {
$althosts = explode(" ", $config['system']['webgui']['althostnames']);
foreach ($althosts as $ah)
OpenPOWER on IntegriCloud