diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 97b81e0b..a46461dd 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -438,11 +438,11 @@ username.form['driver'].onchange(); restart_session(); $id = "sql-" . ($count++); $history = &get_session("queries"); - if (strlen($query) > 1e6) { // not DB - reset in drop database + 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 } - $history[$_GET["db"]][] = $query; // not DB - $_GET["db"] is changed in database.inc.php //! respect $_GET["ns"] - return " " . lang('SQL command') . "
" . shorten_utf8($query, 1000) . '
" . shorten_utf8($query, 1000) . '