// added list of tables and attributes in AdminRequestSqlController + change export request
This commit is contained in:
+2
-2
@@ -401,10 +401,10 @@ abstract class DbCore
|
||||
$sql = (string)$sql;
|
||||
|
||||
// This methode must be used only with queries which display results
|
||||
if (!preg_match('#^\s*(select|show|explain)\s#i', $sql))
|
||||
if (!preg_match('#^\s*(select|show|explain|describe)\s#i', $sql))
|
||||
{
|
||||
if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)
|
||||
throw new PrestashopDatabaseException('Db->executeS() must be used only with select, show or explain queries');
|
||||
throw new PrestashopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
|
||||
return $this->execute($sql, $use_cache);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user