diff --git a/ChangeLog b/ChangeLog index 74524ab6c..f67621f16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ $Id$ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $ 2.11.4.0 (not yet released) +- bug #1843428 [GUI] Space issue with DROP/DELETE/ALTER TABLE 2.11.3.0 (not yet released) - patch #1818389 to remove a notice (failed to flush buffer), thanks to diff --git a/js/functions.js b/js/functions.js index 37b0f982d..276366409 100644 --- a/js/functions.js +++ b/js/functions.js @@ -159,9 +159,9 @@ function confirmQuery(theForm1, sqlQuery1) // For now, I just added a ^ to check for the statement at // beginning of expression - var do_confirm_re_0 = new RegExp('^DROP\\s+(IF EXISTS\\s+)?(TABLE|DATABASE)\\s', 'i'); - var do_confirm_re_1 = new RegExp('^ALTER\\s+TABLE\\s+((`[^`]+`)|([A-Za-z0-9_$]+))\\s+DROP\\s', 'i'); - var do_confirm_re_2 = new RegExp('^DELETE\\s+FROM\\s', 'i'); + var do_confirm_re_0 = new RegExp('^\\s*DROP\\s+(IF EXISTS\\s+)?(TABLE|DATABASE)\\s', 'i'); + var do_confirm_re_1 = new RegExp('^\\s*ALTER\\s+TABLE\\s+((`[^`]+`)|([A-Za-z0-9_$]+))\\s+DROP\\s', 'i'); + var do_confirm_re_2 = new RegExp('^\\s*DELETE\\s+FROM\\s', 'i'); if (do_confirm_re_0.test(sqlQuery1.value) || do_confirm_re_1.test(sqlQuery1.value) || do_confirm_re_2.test(sqlQuery1.value)) {