diff --git a/ChangeLog b/ChangeLog index a32665863..994745d37 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-07-28 Marc Delisle + * sql.php3: bug 778899, could not create a bookmark + 2003-07-27 Alexander M. Turek * server_privileges.php3: A user could not edit his own global privileges. diff --git a/sql.php3 b/sql.php3 index d3a5ea42a..c1ffd2266 100755 --- a/sql.php3 +++ b/sql.php3 @@ -8,7 +8,6 @@ require('./libraries/grab_globals.lib.php3'); require('./libraries/common.lib.php3'); -PMA_checkParameters(array('sql_query', 'db')); /** * Defines the url to return to in case of error in a sql statement @@ -38,6 +37,15 @@ if (isset($fields['query'])) { $sql_query = $fields['query']; } +// This one is just to fill $db +if (isset($fields['dbase'])) { + $db = $fields['dbase']; +} + +// Now we can check the parameters +PMA_checkParameters(array('sql_query', 'db')); + + /** * Check rights in case of DROP DATABASE *