diff --git a/ChangeLog b/ChangeLog index 89fa2db0f..6ac3fdbbf 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-09-25 Marc Delisle + * read_dump.php3: bug 611970, do not display the imported query + if larger than 500 (I don't think it's necessary to add another + config variable), thanks to Loïc + 2002-09-24 Marc Delisle * sql.php3: could not go to next page when browsing a query containing a function like SUM(), due to IFs in reversed sequence diff --git a/read_dump.php3 b/read_dump.php3 index 8a017705f..5d76b264c 100644 --- a/read_dump.php3 +++ b/read_dump.php3 @@ -344,6 +344,11 @@ if ($sql_query != '') { $sql_query_cpy = $sql_query = ''; } else { $sql_query_cpy = implode(";\n", $pieces) . ';'; + // Be nice with bandwidth... for now, an arbitrary limit of 500, + // could be made configurable but probably not necessary + if (strlen($sql_query_cpy) > 500) { + $sql_query_cpy = $sql_query = ''; + } } // really run the query?