From: Jakub Vrana Date: Wed, 17 Apr 2013 00:53:53 +0000 (-0700) Subject: Avoid using same id="" in more messages X-Git-Tag: v3.6.4~15 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=a8947b62b8623ffd19e966ddbf1cdef65976478e;p=adminer.git Avoid using same id="" in more messages --- diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 02d3da98..7b6050f9 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -485,10 +485,9 @@ username.form['auth[driver]'].onchange(); */ function messageQuery($query) { global $jush; - static $count = 0; restart_session(); - $id = "sql-" . ($count++); $history = &get_session("queries"); + $id = "sql-" . count($history[$_GET["db"]]); if (strlen($query) > 1e6) { $query = ereg_replace('[\x80-\xFF]+$', '', substr($query, 0, 1e6)) . "\n..."; // [\x80-\xFF] - valid UTF-8, \n - can end by one-line comment } diff --git a/changes.txt b/changes.txt index 0aa18dc2..784425ea 100644 --- a/changes.txt +++ b/changes.txt @@ -9,7 +9,7 @@ Explain partitions in SQL query (bug #3600150) Allow loading more data with inline edit (bug #3605531) Stay on the same page after deleting rows (bug #3605845) Respect checked tables in export filename (bug #3245464) -Handle max_input_vars +Respect PHP configuration max_input_vars Open database to a new window after selecting it with Ctrl Disable autocapitalize in identifiers on mobile browsers MySQL: Compatibility with MySQL 5.6