summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-20 22:32:21 +0000
committerErmal <eri@pfsense.org>2013-12-20 22:32:21 +0000
commit362ec35df2999b4ab75c72473c0b3c938070c2bc (patch)
treeaf39baa4761f8804c08e8fe33dd9614c1b7776d3 /etc/inc/config.lib.inc
parentaa205c3b69bf76b1565fd42dba83c7637212f793 (diff)
downloadpfsense-362ec35df2999b4ab75c72473c0b3c938070c2bc.zip
pfsense-362ec35df2999b4ab75c72473c0b3c938070c2bc.tar.gz
Do not register the _ENV superglobal since its not required and probably not very useful in a [F]CGI world and its limit is restricted nowdays in pfSense.
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r--etc/inc/config.lib.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index 8d80e98..17984ee 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -876,10 +876,9 @@ function set_device_perms() {
function get_config_user() {
if (empty($_SESSION["Username"])) {
- if (empty($_ENV['USER']) || $_ENV['USER'] == "root")
+ $username = getenv("USER");
+ if (empty($conuser) || $conuser == "root")
$username = "(system)";
- else
- $username = $_ENV['USER'];
} else
$username = $_SESSION["Username"];
OpenPOWER on IntegriCloud