diff options
author | Ermal <eri@pfsense.org> | 2013-12-20 22:32:21 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-20 22:32:21 +0000 |
commit | 362ec35df2999b4ab75c72473c0b3c938070c2bc (patch) | |
tree | af39baa4761f8804c08e8fe33dd9614c1b7776d3 /etc/inc | |
parent | aa205c3b69bf76b1565fd42dba83c7637212f793 (diff) | |
download | pfsense-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')
-rw-r--r-- | etc/inc/config.lib.inc | 5 |
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"]; |