From 0d15c0cb158778920c6ff530fce97152e1414c41 Mon Sep 17 00:00:00 2001 From: Marcel Naeve Date: Fri, 13 May 2016 14:32:38 +0200 Subject: [PATCH] fix in iban validation - sanitize. --- Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Validate.php b/Validate.php index 868b8d7..f1d26e1 100644 --- a/Validate.php +++ b/Validate.php @@ -118,7 +118,7 @@ class Validate "ES" => 24, "SE" => 24, "CH" => 21, "TN" => 24, "TR" => 26, "AE" => 23, "GB" => 22, "VG" => 24 ]; - $iban = mb_ereg_replace("/\s\-/", "", $iban); // sanitize for validation (remove spaces) + $iban = mb_ereg_replace("/(\s|\-)/", "", $iban); // sanitize for validation (remove spaces) $country = mb_strtoupper(mb_substr($iban, 0, 2)); // we know the country the IBAN belongs to?