Commit dc5a6e3c authored by Franco Fichtner's avatar Franco Fichtner

config: trim newline character for neatness

(cherry picked from commit 703372ea)
parent d4b45728
......@@ -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