diff --git a/ChangeLog b/ChangeLog index b67f0e2d9..0551257ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ $HeadURL$ - bug #1729027 Sorting results of VIEW browsing - bug #1727138 HTML not encoded (more than 1000 characters) - bug #1733012 Unwanted table alias in delete button +- bug #1736405 Pretty printer and HTML line breaks 2.10.2.0 (2007-06-15) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 1717ac6ee..6f0510f71 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1407,7 +1407,7 @@ if (typeof(window.parent) != 'undefined' $max_characters = 1000; if (! defined('PMA_QUERY_TOO_BIG') && strlen($query_base) > $max_characters) { define('PMA_QUERY_TOO_BIG',1); - $query_base = htmlspecialchars($sql_query); + $query_base = nl2br(htmlspecialchars($sql_query)); } // Parse SQL if needed