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(