Browse Source
Set 'IDNA_NONTRANSITIONAL_TO_ASCII' idn-option
pull/6806/head
Max Boße
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
program/lib/Roundcube/rcube_utils.php
|
|
@ -949,7 +949,7 @@ class rcube_utils |
|
|
|
// Note that in PHP 7.2/7.3 calling idn_to_* functions with default arguments
|
|
|
|
// throws a warning, so we have to set the variant explicitely (#6075)
|
|
|
|
$variant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : null; |
|
|
|
$options = 0; |
|
|
|
$options = defined('IDNA_NONTRANSITIONAL_TO_ASCII') ? IDNA_NONTRANSITIONAL_TO_ASCII : 0; |
|
|
|
|
|
|
|
// Because php-intl extension lowercases domains and return false
|
|
|
|
// on invalid input (#6224), we skip conversion when not needed
|
|
|
|