regex problem when only_db is used
This commit is contained in:
@@ -1105,7 +1105,8 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($is_show_dbs && preg_match('@(^|[^\])(_|%)@', $dblist[$i])) {
|
||||
//if ($is_show_dbs && preg_match('@(^|[^\])(_|%)@', $dblist[$i])) {
|
||||
if ($is_show_dbs && ereg('(^|[^\])(_|%)', $dblist[$i])) {
|
||||
$local_query = 'SHOW DATABASES LIKE \'' . $dblist[$i] . '\'';
|
||||
$rs = PMA_mysql_query($local_query, $dbh);
|
||||
// "SHOW DATABASES" statement is disabled
|
||||
@@ -1949,4 +1950,4 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
|
||||
|
||||
} // end if: minimal common.lib needed?
|
||||
} // $__PMA_COMMON_LIB__
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user