diff options
author | jim-p <jim@pingle.org> | 2010-05-12 18:16:42 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-05-12 18:16:42 -0400 |
commit | 4d52a9b995b2768b321418d83c3fd558252ca203 (patch) | |
tree | 790181ce5ef5ed927da31ad9290591f1100552f9 /etc | |
parent | 362b81478d2dba5e87f2842123e425ee3675a70a (diff) | |
download | pfsense-4d52a9b995b2768b321418d83c3fd558252ca203.zip pfsense-4d52a9b995b2768b321418d83c3fd558252ca203.tar.gz |
Tag all config write cases with the username.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.lib.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index 8f67f72..d604ffc 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -469,9 +469,9 @@ function write_config($desc="Unknown", $backup = true) { /* Log the running script so it's not entirely unlogged what changed */ if ($desc == "Unknown") - $desc = "{$_SESSION['Username']}: {$_SERVER['SCRIPT_NAME']} made unknown change"; + $desc = "{$_SERVER['SCRIPT_NAME']} made unknown change"; - $config['revision']['description'] = $desc; + $config['revision']['description'] = "{$_SESSION['Username']}: " . $desc; $config['revision']['username'] = $_SESSION["Username"]; $lockkey = lock('config'); |