summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-05-12 18:16:42 -0400
committerjim-p <jim@pingle.org>2010-05-12 18:16:42 -0400
commit4d52a9b995b2768b321418d83c3fd558252ca203 (patch)
tree790181ce5ef5ed927da31ad9290591f1100552f9 /etc
parent362b81478d2dba5e87f2842123e425ee3675a70a (diff)
downloadpfsense-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.inc4
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');
OpenPOWER on IntegriCloud