{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4965","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4965/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4965/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4965/events","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/4965","id":197868873,"number":4965,"title":"Always invalid email when idn_to_ascii function exists.","user":{"login":"mstojanovv","id":9830454,"avatar_url":"https://avatars.githubusercontent.com/u/9830454?v=3","gravatar_id":"","url":"https://api.github.com/users/mstojanovv","html_url":"https://github.com/mstojanovv","followers_url":"https://api.github.com/users/mstojanovv/followers","following_url":"https://api.github.com/users/mstojanovv/following{/other_user}","gists_url":"https://api.github.com/users/mstojanovv/gists{/gist_id}","starred_url":"https://api.github.com/users/mstojanovv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstojanovv/subscriptions","organizations_url":"https://api.github.com/users/mstojanovv/orgs","repos_url":"https://api.github.com/users/mstojanovv/repos","events_url":"https://api.github.com/users/mstojanovv/events{/privacy}","received_events_url":"https://api.github.com/users/mstojanovv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-28T15:18:11Z","updated_at":"2016-12-29T22:18:59Z","closed_at":"2016-12-29T22:17:14Z","body":"Hello.\r\n\r\nProblem in Codeigniter version # 3.1.2\r\nPHP Version 7.0\r\n\r\nI have some strange problem with the email validation method.\r\nsystem/libraries/form_validation.php on line number 1232 there line:\r\n\r\n`\r\nif (function_exists('idn_to_ascii') && sscanf($str, '%[^@]@%s', $name, $domain) === 2)\r\n{\r\n     $str = $name.'@'.idn_to_ascii($domain);\r\n}\r\n`\r\n\r\nWhen the email string comes inside this statement (when function id_to_ascii exists) the validation always returns as invalid email. \r\n\r\nI tried to remove this line and works good.\r\nAny ideas about this?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/comments/269702395","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/4965#issuecomment-269702395","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4965","id":269702395,"user":{"login":"narfbg","id":1058011,"avatar_url":"https://avatars.githubusercontent.com/u/1058011?v=3","gravatar_id":"","url":"https://api.github.com/users/narfbg","html_url":"https://github.com/narfbg","followers_url":"https://api.github.com/users/narfbg/followers","following_url":"https://api.github.com/users/narfbg/following{/other_user}","gists_url":"https://api.github.com/users/narfbg/gists{/gist_id}","starred_url":"https://api.github.com/users/narfbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narfbg/subscriptions","organizations_url":"https://api.github.com/users/narfbg/orgs","repos_url":"https://api.github.com/users/narfbg/repos","events_url":"https://api.github.com/users/narfbg/events{/privacy}","received_events_url":"https://api.github.com/users/narfbg/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T22:18:59Z","updated_at":"2016-12-29T22:18:59Z","body":"This is not a forum board."}}
{"actor":{"display_login":"narfbg"}}