fix confirm bug with the new backquotes

This commit is contained in:
Steve Alberty
2001-08-02 13:09:03 +00:00
parent 87e5247cc0
commit 31405ea4f5
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-02 Steve Alberty <alberty@neptunlabs.de>
* sql.php3: fix confirm bug with the new backquotes
2001-08-01 Marc Delisle <lem9@users.sourceforge.net>
* executed remove_control_m.sh on *.php3

View File

@@ -50,7 +50,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) {
*/
$do_confirm = ($cfgConfirm
&& !isset($btnDrop)
&& eregi('DROP +(TABLE|DATABASE)|ALTER TABLE +[[:alnum:]_]* +DROP|DELETE FROM', $sql_query));
&& eregi('DROP +(TABLE|DATABASE)|ALTER TABLE +[[:alnum:]_`]* +DROP|DELETE FROM', $sql_query));
$is_select = eregi('^SELECT ', $sql_query);
$is_delupd = eregi('^(DELETE|UPDATE) ', $sql_query);