From 703372eae2a330fde538ac362a8034db8e481f8b Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 28 Jan 2016 14:48:23 +0100 Subject: [PATCH] config: trim newline character for neatness --- src/etc/inc/config.lib.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc index 56f10772a..25d22af92 100644 --- a/src/etc/inc/config.lib.inc +++ b/src/etc/inc/config.lib.inc @@ -313,7 +313,7 @@ function make_config_revision_entry($desc = '') if (!empty($_SESSION['Username'])) { $username = $_SESSION['Username']; } else { - $username = '(' . shell_exec('/usr/bin/whoami') . ')'; + $username = '(' . trim(shell_exec('/usr/bin/whoami')) . ')'; } if (!empty($_SERVER['REMOTE_ADDR'])) {