@@ 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 | } |
@@ 151-155 (lines=5) @@ | ||
148 | } |
|
149 | ||
150 | list($name, $domain) = \explode('@', $email, 2); |
|
151 | if (\defined('INTL_IDNA_VARIANT_UTS46')) { |
|
152 | $domain = \idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46); |
|
153 | } else { |
|
154 | $domain = \idn_to_ascii($domain); |
|
155 | } |
|
156 | return $name.'@'.$domain; |
|
157 | } |
|
158 |