globalcitizen / php-iban

Generate, parse, validate, error-correct and present IBAN (and IIBAN) bank account information in PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

verify_iban accepts special characters as whitespace

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. verify_iban('FI21 1234-5600 0007?85');

What is the expected output? What do you see instead?

Expect false. Got true.

What version of the product are you using? On what operating system?
1.4.3

Please provide any additional information below.
Is this a feature, as iban_to_machine_format seems to filter that sort of 
things out?

Original issue reported on code.google.com by niglui...@gmail.com on 11 Sep 2013 at 11:58

Yes, it's a feature, not a bug!

Haha.

Probably it should be possible to test in a more formalistic way, though. I'll 
sort that out.

Original comment by walter.stanish@gmail.com on 12 Sep 2013 at 3:08

  • Changed state: Accepted
  • Added labels: Priority-Low
  • Removed labels: Priority-Medium