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 357f938 commit 8477b88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CHANGELOG Roundcube Webmail
===========================

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

RELEASE 1.3.6
-------------
- Fix parsing date strings (e.g. from a Date: mail header) with comments (#6216)
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 @@ -905,7 +905,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 8477b88

Please sign in to comment.