Changeset 4420 in subversion
- Timestamp:
- Jan 17, 2011 7:21:08 AM (2 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/main.inc (modified) (2 diffs)
-
program/include/rcmail.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r4418 r4420 4 4 - Fix login redirect issues (#1487686) 5 5 - Require PHP 5.2.1 or greater 6 - Fix %h/%z variables in username_domain option (#1487701) 6 7 7 8 RELEASE 0.5 -
trunk/roundcubemail/program/include/main.inc
r4411 r4420 1772 1772 * 1773 1773 * @param string $name Hostname 1774 * @param string $host Optional IMAP hostname 1774 1775 * @return string 1775 1776 */ 1776 function rcube_parse_host($name )1777 function rcube_parse_host($name, $host='') 1777 1778 { 1778 1779 // %n - host … … 1781 1782 $d = preg_replace('/^[^\.]+\./', '', $n); 1782 1783 // %h - IMAP host 1783 $h = $_SESSION['imap_host'] ;1784 $h = $_SESSION['imap_host'] ? $_SESSION['imap_host'] : $host; 1784 1785 // %z - IMAP domain without first part, e.g. %h=imap.domain.tld, %z=domain.tld 1785 1786 $z = preg_replace('/^[^\.]+\./', '', $h); -
trunk/roundcubemail/program/include/rcmail.php
r4419 r4420 675 675 if (!empty($config['username_domain']) && strpos($username, '@') === false) { 676 676 if (is_array($config['username_domain']) && isset($config['username_domain'][$host])) 677 $username .= '@'.rcube_parse_host($config['username_domain'][$host] );677 $username .= '@'.rcube_parse_host($config['username_domain'][$host], $host); 678 678 else if (is_string($config['username_domain'])) 679 $username .= '@'.rcube_parse_host($config['username_domain'] );679 $username .= '@'.rcube_parse_host($config['username_domain'], $host); 680 680 } 681 681
Note: See TracChangeset
for help on using the changeset viewer.
