{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13802","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13802/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13802/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13802/events","html_url":"https://github.com/symfony/symfony/issues/13802","id":59057231,"number":13802,"title":"[Validator] Iban \"FR76\" is considered as valid","user":{"login":"npotier","id":1151094,"avatar_url":"https://avatars.githubusercontent.com/u/1151094?v=3","gravatar_id":"","url":"https://api.github.com/users/npotier","html_url":"https://github.com/npotier","followers_url":"https://api.github.com/users/npotier/followers","following_url":"https://api.github.com/users/npotier/following{/other_user}","gists_url":"https://api.github.com/users/npotier/gists{/gist_id}","starred_url":"https://api.github.com/users/npotier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npotier/subscriptions","organizations_url":"https://api.github.com/users/npotier/orgs","repos_url":"https://api.github.com/users/npotier/repos","events_url":"https://api.github.com/users/npotier/events{/privacy}","received_events_url":"https://api.github.com/users/npotier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-26T11:15:35Z","updated_at":"2015-02-26T11:25:35Z","closed_at":null,"body":"Hi,\r\n\r\nI have a problem with the IbanValidator. Iban \"FR76\" is considered as valid. \r\n\r\nThe problem is that the Iban length according to the country is not tested ([step 1 of the validation algorithm](http://en.wikipedia.org/wiki/International_Bank_Account_Number#Validating_the_IBAN))\r\n\r\nFollowing the current algorithm of ``IbanValidator.php``, the ``FR76`` string is converted to ``152776`` integer, and ``152776 % 7 `` is equal to 1, so the Iban is considered as valid.\r\n\r\nI have reproduced the problem here : https://github.com/acseo/Validator/commit/4859db35b44ab72984481322b87cc9481b67e9d0\r\n\r\nDo I understand it right ? Does anyone agree with this issue ?"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/76162514","html_url":"https://github.com/symfony/symfony/issues/13802#issuecomment-76162514","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13802","id":76162514,"user":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T11:25:35Z","updated_at":"2015-02-26T11:25:35Z","body":"IBAN registry is officially maintained by swift: http://www.swift.com/dsp/resources/documents/IBAN_Registry.pdf"}}