[-] MO : #PNM-32 - Bad regex on blocklayered
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14256 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -2159,7 +2159,7 @@ class BlockLayered extends Module
|
||||
foreach ($_GET as $key => $value)
|
||||
if (substr($key, 0, 8) == 'layered_')
|
||||
{
|
||||
preg_match('/^(.*)_[0-9|new|used|refurbished|slider]+$/', substr($key, 8, strlen($key) - 8), $res);
|
||||
preg_match('/^(.*)_([0-9]+|new|used|refurbished|slider)$/', substr($key, 8, strlen($key) - 8), $res);
|
||||
if (isset($res[1]))
|
||||
{
|
||||
$tmp_tab = explode('_', $value);
|
||||
|
||||
Reference in New Issue
Block a user