diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-08 17:18:32 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-08 17:18:32 +0000 |
| commit | f5f293ee602c7e2aa7594a6984577b9ac2f8d040 (patch) | |
| tree | ff1c538c59531af94e9337cbdd8d0687d96c0b20 /roundcubemail/program/include/main.inc | |
| parent | ebcb788e3b7cc08597a1f19e7acf34c3ec1f01bb (diff) | |
Distinguish ssl and tls for imap connections (#1484667)
git-svn-id: https://svn.roundcube.net/trunk@1031 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 1e25dd6d1..61a9c9cd1 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/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 |
