Skip to content

Commit

Permalink
Fix PHP Warning: Use of undefined constant IDNA_DEFAULT on systems wi…
Browse files Browse the repository at this point in the history
…thout php-intl (#6244)
  • Loading branch information
alecpl committed Apr 12, 2018
1 parent 9cd0c6e commit a889f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ public static function idn_convert($input, $is_utf = false)
// 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
Expand Down

0 comments on commit a889f55

Please sign in to comment.