// Add DESC keyword to executeS() filter #PSFV-791

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14706 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-04-18 07:52:40 +00:00
parent 360407f52b
commit 94a7037013
+1 -1
View File
@@ -465,7 +465,7 @@ abstract class DbCore
$sql = $sql->build();
// This method must be used only with queries which display results
if (!preg_match('#^\s*\(?\s*(select|show|explain|describe)\s#i', $sql))
if (!preg_match('#^\s*\(?\s*(select|show|explain|describe|desc)\s#i', $sql))
{
if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)
throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');