Ignore:
Timestamp:
Feb 8, 2008 12:18:32 PM (5 years ago)
Author:
thomasb
Message:

Distinguish ssl and tls for imap connections (#1484667)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r1026 r1031  
    563563    { 
    564564    $host = $a_host['host']; 
    565     $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? TRUE : FALSE; 
     565    $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? $a_host['scheme'] : null; 
    566566    $imap_port = isset($a_host['port']) ? $a_host['port'] : ($imap_ssl ? 993 : $CONFIG['default_port']); 
    567567    } 
Note: See TracChangeset for help on using the changeset viewer.