diff options
author | Deven Bansod <devenbansod.bits@gmail.com> | 2016-10-11 08:13:22 +0300 |
---|---|---|
committer | Deven Bansod <devenbansod.bits@gmail.com> | 2016-10-11 08:13:22 +0300 |
commit | 337b38044ddfe74d334831390c6cb40cd2f001f1 (patch) | |
tree | e22b9c81d41e7cbb451b1bca56c08865f6adb4fa /libraries | |
parent | 54875fffc12da0f1c0c2b6042e638b08fc337e2a (diff) |
Manage new-lines and extra whitespaces properly
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/Tracker.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/Tracker.class.php b/libraries/Tracker.class.php index 4e67c08a21..a3c35acb1a 100644 --- a/libraries/Tracker.class.php +++ b/libraries/Tracker.class.php @@ -230,8 +230,9 @@ class PMA_Tracker static public function getLogComment() { $date = date('Y-m-d H:i:s'); + $user = preg_replace('/\s+/', ' ', $GLOBALS['cfg']['Server']['user']); - return "# log " . $date . " " . $GLOBALS['cfg']['Server']['user'] . "\n"; + return "# log " . $date . " " . $user . "\n"; } /** |