summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
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 84b73dc..dbd8a3e 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(!$config['system']['nohttpreferercheck']) {
+if(function_exists("display_error_form") && !$config['system']['nohttpreferercheck']) {
if($_SERVER['HTTP_REFERER']) {
$found_host = false;
$hostname_me = $config['system']['hostname'] . "." . $config['system']['domain'];
OpenPOWER on IntegriCloud