From: Jakub Vrana Date: Fri, 28 Mar 2025 19:45:27 +0000 (+0100) Subject: Check numeric table names after error X-Git-Tag: v5.1.1~86 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=d5bba383ea0b6c6d911cde6f3eadf36be7417e0b;p=adminer.git Check numeric table names after error --- diff --git a/adminer/db.inc.php b/adminer/db.inc.php index 8b273fb3..3494d700 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -93,7 +93,7 @@ if ($adminer->homepage()) { foreach ($tables_list as $name => $type) { $view = ($type !== null && !preg_match('~table|sequence~i', $type)); $id = h("Table-" . $name); - echo '' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array($name, $tables_views, true), "", "", "", $id); + echo '' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array("$name", $tables_views, true), "", "", "", $id); // "$name" to check numeric table names echo '' . (support("table") || support("indexes") ? "" . h($name) . '' : h($name)); if ($view) { echo '' . (preg_match('~materialized~i', $type) ? lang('Materialized view') : lang('View')) . '';