config: trim newline character for neatness

This commit is contained in:
Franco Fichtner 2016-01-28 14:48:23 +01:00
parent 9f2d4bae77
commit 703372eae2

View File

@ -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'])) {