Fix PHP Warning: Use of undefined constant IDNA_DEFAULT on systems without php-intl (#6244)

pull/6256/head
Aleksander Machniak 6 years ago
parent 9cd0c6e805
commit a889f55c31

@ -74,6 +74,7 @@ CHANGELOG Roundcube Webmail
- Fix touch event issue on messages list in IE/Edge (#5781)
- Fix so links over images are not removed in plain text signatures converted from HTML (#4473)
- Fix various issues when downloading files with names containing non-ascii chars, use RFC 2231 (#5772)
- Fix PHP Warning: Use of undefined constant IDNA_DEFAULT on systems without php-intl (#6244)
RELEASE 1.3.6
-------------

@ -959,7 +959,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 = IDNA_DEFAULT;
$options = 0;
// Because php-intl extension lowercases domains and return false
// on invalid input (#6224), we skip conversion when not needed

Loading…
Cancel
Save