@@ 152-156 (lines=5) @@ | ||
149 | } |
|
150 | ||
151 | list($name, $domain) = \explode('@', $email, 2); |
|
152 | if (\defined('INTL_IDNA_VARIANT_UTS46')) { |
|
153 | $domain = \idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46); |
|
154 | } else { |
|
155 | $domain = \idn_to_ascii($domain); |
|
156 | } |
|
157 | return $name.'@'.$domain; |
|
158 | } |
|
159 |
@@ 60-64 (lines=5) @@ | ||
57 | foreach ($addresses as $email => $readableName) { |
|
58 | if (!\is_numeric($email)) { |
|
59 | list($name, $domain) = \explode('@', $email, 2); |
|
60 | if (\defined('INTL_IDNA_VARIANT_UTS46')) { |
|
61 | $domain = \idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46); |
|
62 | } else { |
|
63 | $domain = \idn_to_ascii($domain); |
|
64 | } |
|
65 | $convertedAddresses[$name.'@'.$domain] = $readableName; |
|
66 | } else { |
|
67 | list($name, $domain) = \explode('@', $readableName, 2); |
|
@@ 68-72 (lines=5) @@ | ||
65 | $convertedAddresses[$name.'@'.$domain] = $readableName; |
|
66 | } else { |
|
67 | list($name, $domain) = \explode('@', $readableName, 2); |
|
68 | if (\defined('INTL_IDNA_VARIANT_UTS46')) { |
|
69 | $domain = \idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46); |
|
70 | } else { |
|
71 | $domain = \idn_to_ascii($domain); |
|
72 | } |
|
73 | $convertedAddresses[$email] = $name.'@'.$domain; |
|
74 | } |
|
75 | } |