diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-11-10 12:45:49 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-11-10 12:45:49 -0500 |
commit | 0bb2879551389e31286ee1a9b56071273a8a5e33 (patch) | |
tree | 8981c31bc57df8e32c044f00d0d770589ea88963 | |
parent | 612fa5724a9eb132434a803d020f9e2d0b74a471 (diff) | |
download | pfsense-0bb2879551389e31286ee1a9b56071273a8a5e33.zip pfsense-0bb2879551389e31286ee1a9b56071273a8a5e33.tar.gz |
Correct HTTP_REFERER check when using an IP Address vs the Firewalls hostname
-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 d4e0875..443c9dc 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -102,7 +102,7 @@ if(!$config['system']['nohttpreferercheck']) { $interface_list_ips = get_configured_ip_addresses(); foreach($interface_list_ips as $ilips) { $hostname_me_ip = $config['webgui']['protocol'] . "://" . $ilips; - if(stristr($hostname_me_ip, $ilips)) + if(stristr($_SERVER['HTTP_REFERER'],$hostname_me_ip)) $found_host = true; } if($found_host == false) { |