From cf9287737452135be02151f36841849b5781f457 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 21 Dec 2009 14:09:58 +0000 Subject: [PATCH] Fix: bad regular expression --- htdocs/companybankaccount.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/companybankaccount.class.php b/htdocs/companybankaccount.class.php index 1d753d2ab31..61e4eb29116 100644 --- a/htdocs/companybankaccount.class.php +++ b/htdocs/companybankaccount.class.php @@ -217,7 +217,7 @@ class CompanyBankAccount if (! empty($this->iban)) { // If IBAN defined, we can know country of account from it - if (preg_match("/^([a-z]{2}/i)",$this->iban,$reg)) return $reg[1]; + if (preg_match("/^[a-z]{2}/i",$this->iban,$reg)) return $reg[1]; } // We return country code