diff --git a/db_details.php3 b/db_details.php3 index fe86e58c0..fd6e73848 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -20,6 +20,11 @@ if (!isset($message)) { // 1. Gets the list of the tables $tables = mysql_list_tables($db); $num_tables = @mysql_numrows($tables); +// Not a valid db name -> back to the welcome page +if (mysql_error() != '') { + header('Location: main.php3?lang=' . $lang . '&server=' . $server . '&reload=true'); + exit(); +} // speedup view on locked tables - staybyte - 11 June 2001 if ($num_tables > 0 && MYSQL_MAJOR_VERSION >= 3.23 && intval(MYSQL_MINOR_VERSION) >= 3) { @@ -200,16 +205,16 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) { ?>