bug 781170 bad syntax for DROP DATABASE check
This commit is contained in:
2
sql.php3
2
sql.php3
@@ -55,7 +55,7 @@ PMA_checkParameters(array('sql_query', 'db'));
|
||||
*/
|
||||
if (!defined('PMA_CHK_DROP')
|
||||
&& !$cfg['AllowUserDropDatabase']
|
||||
&& eregi('DROP[[:space:]]+(IF EXISTS[[:space:]]+)?DATABASE[[:space:]]', $sql_query)) {
|
||||
&& eregi('DROP[[:space:]]+DATABASE[[:space]]+', $sql_query)) {
|
||||
// Checks if the user is a Superuser
|
||||
// TODO: set a global variable with this information
|
||||
// loic1: optimized query
|
||||
|
Reference in New Issue
Block a user