Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/94'
Browse files Browse the repository at this point in the history
Close #94
  • Loading branch information
weierophinney committed May 17, 2017
2 parents 6c94abb + 0c561ab commit 95c9386
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EmailAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ protected function idnToAscii($email)
*/
protected function idnToUtf8($email)
{
if (strlen($email) == 0) {
return $email;
}

if (extension_loaded('intl')) {
// The documentation does not clarify what kind of failure
// can happen in idn_to_utf8. One can assume if the source
Expand Down

0 comments on commit 95c9386

Please sign in to comment.