]> git.joonet.de Git - adminer.git/commitdiff
Avoid using same id="" in more messages
authorJakub Vrana <jakub@vrana.cz>
Wed, 17 Apr 2013 00:53:53 +0000 (17:53 -0700)
committerJakub Vrana <jakub@vrana.cz>
Wed, 17 Apr 2013 00:53:53 +0000 (17:53 -0700)
adminer/include/adminer.inc.php
changes.txt

index 02d3da989cddfe834ba205f233c247d93e6f2779..7b6050f91260f54370fe7ea1e7050f46967e7992 100644 (file)
@@ -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
                }
index 0aa18dc22d37d56c017c782279ce3393a0e31267..784425ea97d7d8be44aac4d3b1eebf2f127fcbdc 100644 (file)
@@ -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