From ba17e440e067a8f3f521fc130f5ce9ded54571ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 22 Jan 2010 15:41:10 +0000 Subject: [PATCH] Check for empty database name. --- tbl_create.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tbl_create.php b/tbl_create.php index 397ba21e7..a98ce2fc2 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 */