diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 14:56:54 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 14:56:54 +0100 |
commit | c3bc039cea1098c1297a3dae2178ab68a128a18e (patch) | |
tree | 91bd59ab3fb13e21fff2680ca92f0f90b240c741 /etc/inc/config.inc | |
parent | c039d44a7b4531f045b9f4702aaba28ffc70e541 (diff) | |
download | pfsense-c3bc039cea1098c1297a3dae2178ab68a128a18e.zip pfsense-c3bc039cea1098c1297a3dae2178ab68a128a18e.tar.gz |
Do not let the config.inc to be included from GUI scripts.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index e027062..8e64643 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -42,6 +42,11 @@ pfSense_MODULE: config */ +if (php_sapi_name() == 'fpm-fcgi') { + log_error("config.inc is called from GUI interface which is wrong, please report this!"); + return; +} + if($g['booting']) echo "."; /* do not load this file twice. */ |