Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2010-01-22 18:41:10 +0300
committerMichal Čihař <michal@cihar.com>2010-01-22 18:41:10 +0300
commitba17e440e067a8f3f521fc130f5ce9ded54571ce (patch)
treec025f623f48a592ab1503b9d22ed56b796b2cda4 /tbl_create.php
parent2fc3f1beba4296bd1e25a5127a97bea3753b9b2e (diff)
Check for empty database name.
Diffstat (limited to 'tbl_create.php')
-rw-r--r--tbl_create.php5
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
*/