Use non-deprecated INTL_IDNA_VARIANT_UTS46
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
c78e999b21
commit
70d42afb93
|
@ -170,7 +170,7 @@ class Mailer implements IMailer {
|
|||
}
|
||||
|
||||
list($name, $domain) = explode('@', $email, 2);
|
||||
$domain = idn_to_ascii($domain);
|
||||
$domain = idn_to_ascii($domain, 0,INTL_IDNA_VARIANT_UTS46);
|
||||
return $name.'@'.$domain;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,11 +58,11 @@ class Message {
|
|||
foreach($addresses as $email => $readableName) {
|
||||
if(!is_numeric($email)) {
|
||||
list($name, $domain) = explode('@', $email, 2);
|
||||
$domain = idn_to_ascii($domain);
|
||||
$domain = idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46);
|
||||
$convertedAddresses[$name.'@'.$domain] = $readableName;
|
||||
} else {
|
||||
list($name, $domain) = explode('@', $readableName, 2);
|
||||
$domain = idn_to_ascii($domain);
|
||||
$domain = idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46);
|
||||
$convertedAddresses[$email] = $name.'@'.$domain;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue