summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-08 17:18:32 +0000
committerthomascube <thomas@roundcube.net>2008-02-08 17:18:32 +0000
commit5bc0ab10fc24d22c422517abd0a9eaa0be31f529 (patch)
tree976db5f2c9c97de41163879824d1f93bc167eaf4 /program/include/main.inc
parent320e15b32fc65b18cf571c3f25902482f0ec6eeb (diff)
Distinguish ssl and tls for imap connections (#1484667)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 1e25dd6d1..61a9c9cd1 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -562,7 +562,7 @@ function rcmail_login($user, $pass, $host=NULL)
if ($a_host['host'])
{
$host = $a_host['host'];
- $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? TRUE : FALSE;
+ $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? $a_host['scheme'] : null;
$imap_port = isset($a_host['port']) ? $a_host['port'] : ($imap_ssl ? 993 : $CONFIG['default_port']);
}
else