Commit 703372ea authored by Franco Fichtner's avatar Franco Fichtner

config: trim newline character for neatness

parent 9f2d4bae
......@@ -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'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment