summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-02 19:35:54 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-02 19:39:02 +0200
commit16ce146d8881410618521ec676cb8e39252bb833 (patch)
tree109c1599754145702edd3d164c304564d3d8abb0
parent9b0173c8812b144399e11cea5c6536f4950c993b (diff)
Fix IMAP connection test in installer so it is aware of imap_auth_type (#1489746)
-rw-r--r--CHANGELOG1
-rw-r--r--installer/test.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3b605f0e3..4f9f70060 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -22,6 +22,7 @@ CHANGELOG Roundcube Webmail
- Fix too small length of users.preferences column data type on MySQL
- Fix redundant warning when switching from html to text in empty editor (#1489819)
- Fix invalid host validation on login (#1489841)
+- Fix IMAP connection test in installer so it is aware of imap_auth_type (#1489746)
RELEASE 1.0.0
-------------
diff --git a/installer/test.php b/installer/test.php
index 40b052bdc..5d5968e69 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -425,6 +425,11 @@ if (isset($_POST['imaptest']) && !empty($_POST['_host']) && !empty($_POST['_user
$imap_user = idn_to_ascii($_POST['_user']);
$imap = new rcube_imap(null);
+ $imap->set_options(array(
+ 'auth_type' => $RCI->getprop('imap_auth_type'),
+ 'debug' => $RCI->getprop('imap_debug'),
+ ));
+
if ($imap->connect($imap_host, $imap_user, $_POST['_pass'], $imap_port, $imap_ssl)) {
$RCI->pass('IMAP connect', 'SORT capability: ' . ($imap->get_capability('SORT') ? 'yes' : 'no'));
$imap->close();