From e59735ecf6c58e4be1cc7231473e005ff7f0a7fd Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 11 Jun 2009 13:03:15 +0000 Subject: [PATCH] Trim printed query git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@668 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql.inc.php b/sql.inc.php index 7096910f..d85f7d60 100644 --- a/sql.inc.php +++ b/sql.inc.php @@ -28,7 +28,7 @@ if (!$error && $_POST) { $offset = $match[0][1] + strlen($match[0][0]); } else { $empty = false; - echo "
" . htmlspecialchars(substr($query, 0, $match[0][1])) . "
\n"; + echo "
" . htmlspecialchars(trim(substr($query, 0, $match[0][1]))) . "
\n"; flush(); $start = explode(" ", microtime()); //! don't allow changing of character_set_results, convert encoding of displayed query