summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-11-15 18:31:30 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-11-15 20:35:30 -0700
commit55068970f26911be51fe40eae5264df4ea0b29f5 (patch)
treead157e2f168ba383960aef817b45097ff46f5f73 /etc/inc/auth.inc
parentefe259cfaba9dfc2b0cce011875a82e5d8112f60 (diff)
downloadpfsense-55068970f26911be51fe40eae5264df4ea0b29f5.zip
pfsense-55068970f26911be51fe40eae5264df4ea0b29f5.tar.gz
Fix case for testing the referrer check setting. Ticket #1011
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 dbd8a3e..1872ee8 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -87,7 +87,7 @@ if (function_exists("display_error_form") && !isset($config['system']['webgui'][
}
// If the HTTP_REFERER is something other than ourselves then disallow.
-if(function_exists("display_error_form") && !$config['system']['nohttpreferercheck']) {
+if(function_exists("display_error_form") && !isset($config['system']['webgui']['nohttpreferercheck'])) {
if($_SERVER['HTTP_REFERER']) {
$found_host = false;
$hostname_me = $config['system']['hostname'] . "." . $config['system']['domain'];
OpenPOWER on IntegriCloud