mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use non-deprecated INTL_IDNA_VARIANT_UTS46
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
c78e999b21
commit
70d42afb93
2 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue