Set 'IDNA_NONTRANSITIONAL_TO_ASCII' idn-option

pull/6806/head
Max Boße 6 years ago committed by GitHub
parent 89a342a03a
commit 70c20740e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save