// 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:
jmCollin committed 2011-12-19 14:23:08 +00:00
1 parent dac7c7795c
commit 5720e0190f
1 file changed
+2 -2
+2 -2
View File
@@ -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;
} }