diff options
author | Michal Čihař <michal@cihar.com> | 2010-01-22 18:41:10 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2010-01-22 18:41:10 +0300 |
commit | ba17e440e067a8f3f521fc130f5ce9ded54571ce (patch) | |
tree | c025f623f48a592ab1503b9d22ed56b796b2cda4 /tbl_create.php | |
parent | 2fc3f1beba4296bd1e25a5127a97bea3753b9b2e (diff) |
Check for empty database name.
Diffstat (limited to 'tbl_create.php')
-rw-r--r-- | tbl_create.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tbl_create.php b/tbl_create.php index 397ba21e7f..a98ce2fc20 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -49,6 +49,11 @@ require_once './libraries/header.inc.php'; // @todo PMA_checkParameters does not check db and table proper with strlen() PMA_checkParameters(array('db', 'table')); +/* Check if database name is empty */ +if (strlen($db) == 0) { + PMA_mysqlDie($strDatabaseEmpty, '', '', 'main.php'); +} + /** * Defines the url to return to in case of error in a sql statement */ |