From b89031e335810b9eeb7349a3ef88618c22b31fef Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 10 May 2019 21:36:05 +0200 Subject: [PATCH] Fix PHP Deprecated: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated Use rcube_utils::idn_to_ascii() instead of idn_to_ascii(). --- installer/test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/test.php b/installer/test.php index 40d7a39d8..9686808fd 100644 --- a/installer/test.php +++ b/installer/test.php @@ -301,8 +301,8 @@ if (isset($_POST['sendmail'])) { echo '

Trying to send email...
'; - $from = idn_to_ascii(trim($_POST['_from'])); - $to = idn_to_ascii(trim($_POST['_to'])); + $from = rcube_utils::idn_to_ascii(trim($_POST['_from'])); + $to = rcube_utils::idn_to_ascii(trim($_POST['_to'])); if (preg_match('/^' . $RCI->email_pattern . '$/i', $from) && preg_match('/^' . $RCI->email_pattern . '$/i', $to) @@ -426,8 +426,8 @@ if (isset($_POST['imaptest']) && !empty($_POST['_host']) && !empty($_POST['_user $imap_port = 993; } - $imap_host = idn_to_ascii($imap_host); - $imap_user = idn_to_ascii($_POST['_user']); + $imap_host = rcube_utils::idn_to_ascii($imap_host); + $imap_user = rcube_utils::idn_to_ascii($_POST['_user']); $imap = new rcube_imap(null); $imap->set_options(array(