summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-10 12:45:49 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-11-10 12:45:49 -0500
commit0bb2879551389e31286ee1a9b56071273a8a5e33 (patch)
tree8981c31bc57df8e32c044f00d0d770589ea88963 /etc/inc/auth.inc
parent612fa5724a9eb132434a803d020f9e2d0b74a471 (diff)
downloadpfsense-0bb2879551389e31286ee1a9b56071273a8a5e33.zip
pfsense-0bb2879551389e31286ee1a9b56071273a8a5e33.tar.gz
Correct HTTP_REFERER check when using an IP Address vs the Firewalls hostname
Diffstat (limited to 'etc/inc/auth.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 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) {
OpenPOWER on IntegriCloud