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