// Fix bug in preg_match
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11359 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
dac7c7795c
commit
5720e0190f
1 file changed
+2
-2
@@ -242,9 +242,9 @@ class PrestaFraud extends Module
|
|||||||
$payments_configuration = array();
|
$payments_configuration = array();
|
||||||
foreach($_POST AS $field => $val)
|
foreach($_POST AS $field => $val)
|
||||||
{
|
{
|
||||||
if (preg_match('/^carrier_([0-9]+)/Ui', $field, $res))
|
if (preg_match('/^carrier_([0-9]+)$/Ui', $field, $res))
|
||||||
$carriers_configuration[$res[1]] = $val;
|
$carriers_configuration[$res[1]] = $val;
|
||||||
elseif (preg_match('/^paymentmodule_([0-9]+)/Ui', $field, $pay_res))
|
elseif (preg_match('/^paymentmodule_([0-9]+)$/Ui', $field, $pay_res))
|
||||||
$payments_configuration[$pay_res[1]] = $val;
|
$payments_configuration[$pay_res[1]] = $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user