// Fix bug in preg_match
This commit is contained in:
1 parent
608c083d41
commit
cc2954ff62
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user