Fix #15898 - escape tbl_storage_engine argument

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-02-28 23:08:14 +01:00
parent 20e3d2fa9f
commit ca42395ee4
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -467,7 +467,7 @@ class CreateAddField
if (! empty($_POST['tbl_storage_engine'])
&& ($_POST['tbl_storage_engine'] != 'Default')
) {
$sqlQuery .= ' ENGINE = ' . $_POST['tbl_storage_engine'];
$sqlQuery .= ' ENGINE = ' . $this->dbi->escapeString($_POST['tbl_storage_engine']);
}
if (! empty($_POST['tbl_collation'])) {
$sqlQuery .= Util::getCharsetQueryPart($_POST['tbl_collation']);