mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
config: trim newline character for neatness
This commit is contained in:
parent
9f2d4bae77
commit
703372eae2
@ -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'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user