From 5720e0190f1b68cc984046216f85100211bc146a Mon Sep 17 00:00:00 2001 From: jmCollin Date: Mon, 19 Dec 2011 14:23:08 +0000 Subject: [PATCH] // Fix bug in preg_match git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11359 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/prestafraud/prestafraud.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/prestafraud/prestafraud.php b/modules/prestafraud/prestafraud.php index 4f0de04ee..64ff2b153 100644 --- a/modules/prestafraud/prestafraud.php +++ b/modules/prestafraud/prestafraud.php @@ -242,9 +242,9 @@ class PrestaFraud extends Module $payments_configuration = array(); 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; - 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; }