Skip to content

Commit

Permalink
bug #178988 [display] space before SHOW COLUMNS
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Nov 12, 2007
1 parent d606e18 commit 9f9e801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -20,6 +20,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1823045 [import] Error importing file with lowercase "delimiter"
- bug #1828913 [structure] Can't set FULLTEXT index on CHAR column
- bug #1804081 [export] export on server doesn't obey AllowAnyWhereRecoding
- bug #178988 [display] space before SHOW COLUMNS

2.11.2.1 (2007-11-11)
- fixed possible SQL injection using database name
Expand Down
2 changes: 1 addition & 1 deletion sql.php
Expand Up @@ -245,7 +245,7 @@
}
} elseif (preg_match('@^UPDATE[[:space:]]+@i', $sql_query)) {
$is_affected = true;
} elseif (preg_match('@^SHOW[[:space:]]+@i', $sql_query)) {
} elseif (preg_match('@^[[:space:]]*SHOW[[:space:]]+@i', $sql_query)) {
$is_show = true;
} elseif (preg_match('@^(CHECK|ANALYZE|REPAIR|OPTIMIZE)[[:space:]]+TABLE[[:space:]]+@i', $sql_query)) {
$is_maint = true;
Expand Down

0 comments on commit 9f9e801

Please sign in to comment.