diff options
author | Aleksander Machniak <alec@alec.pl> | 2018-04-12 10:39:33 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2018-04-12 10:41:14 +0300 |
commit | 8477b881e5515d6520eb64f760fb49d586fb5689 (patch) | |
tree | 3f086c4cd081cd13010d17b79b84b394a2d3a10e /program | |
parent | 357f9380c3d1415c887e965d2904aa988ae3bd26 (diff) |
Fix PHP Warning: Use of undefined constant IDNA_DEFAULT on systems without php-intl (#6244)
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Roundcube/rcube_utils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_utils.php b/program/lib/Roundcube/rcube_utils.php index c9afe1e14..77b084a99 100644 --- a/program/lib/Roundcube/rcube_utils.php +++ b/program/lib/Roundcube/rcube_utils.php @@ -905,7 +905,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 |