Permalink
Browse files

Allow whitespace in Iban

  • Loading branch information...
bakura10 committed Oct 16, 2012
1 parent 788753f commit eab9a099f3609b1089d7f79ae9fb60fa19ea7bb8
Showing with 2 additions and 2 deletions.
  1. +1 −1 library/Zend/Validator/Iban.php
  2. +1 −1 tests/ZendTest/Validator/IbanTest.php
@@ -226,7 +226,7 @@ public function isValid($value)
return false;
}
- $value = strtoupper($value);
+ $value = str_replace(' ', '', strtoupper($value));
$this->setValue($value);
$countryCode = $this->getCountryCode();
@@ -25,7 +25,7 @@ public function ibanDataProvider()
return array(
array('AD1200012030200359100100', true),
array('AT611904300234573201', true),
- array('AT61 1904 3002 3457 3201', false),
+ array('AT61 1904 3002 3457 3201', true),
array('AD1200012030200354100100', false),
array('AL47212110090000000235698741', true),

0 comments on commit eab9a09

Please sign in to comment.