From 5bc0ab10fc24d22c422517abd0a9eaa0be31f529 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 08 Feb 2008 12:18:32 -0500 Subject: [PATCH] Distinguish ssl and tls for imap connections (#1484667) --- program/include/main.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/include/main.inc b/program/include/main.inc index 1e25dd6..61a9c9c 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -562,7 +562,7 @@ 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 -- Gitblit v1.9.1