protect view name with backquotes
This commit is contained in:
@@ -14,6 +14,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
thanks to Richard Heaton - wotnot
|
thanks to Richard Heaton - wotnot
|
||||||
- bug [XHTML] problem with tabindex and radio fields
|
- bug [XHTML] problem with tabindex and radio fields
|
||||||
- bug #1971221 [interface] tabindex not set correctly
|
- bug #1971221 [interface] tabindex not set correctly
|
||||||
|
- bug [views] VIEW name created via the GUI was not protected with backquotes
|
||||||
|
|
||||||
2.11.7.0 (2008-06-23)
|
2.11.7.0 (2008-06-23)
|
||||||
- bug #1908719 [interface] New field cannot be auto-increment and primary key
|
- bug #1908719 [interface] New field cannot be auto-increment and primary key
|
||||||
|
@@ -29,7 +29,7 @@ if (isset($_POST['submitoptions'])) {
|
|||||||
if (isset($_POST['algorithm'])) {
|
if (isset($_POST['algorithm'])) {
|
||||||
$create_query .= ' ALGORITHM = ' . $_POST['algorithm'] . $sep;
|
$create_query .= ' ALGORITHM = ' . $_POST['algorithm'] . $sep;
|
||||||
}
|
}
|
||||||
$create_query .= ' VIEW ' . $_POST['view_name'] . $sep;
|
$create_query .= ' VIEW ' . PMA_backquote($_POST['view_name']) . $sep;
|
||||||
|
|
||||||
if (!empty($_POST['column_names'])) {
|
if (!empty($_POST['column_names'])) {
|
||||||
$create_query .= ' (' . $_POST['column_names'] . ')' . $sep;
|
$create_query .= ' (' . $_POST['column_names'] . ')' . $sep;
|
||||||
|
Reference in New Issue
Block a user