Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeven Bansod <devenbansod.bits@gmail.com>2016-10-11 08:13:22 +0300
committerDeven Bansod <devenbansod.bits@gmail.com>2016-10-11 08:13:22 +0300
commit337b38044ddfe74d334831390c6cb40cd2f001f1 (patch)
treee22b9c81d41e7cbb451b1bca56c08865f6adb4fa /libraries
parent54875fffc12da0f1c0c2b6042e638b08fc337e2a (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.php3
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";
}
/**