Changeset 45dd7c1 in github


Ignore:
Timestamp:
May 26, 2012 2:38:50 PM (12 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
master, HEAD, dev-browser-capabilities, pdo
Children:
077befb
Parents:
089e53c
Message:

Fix host autoselection when default_host is an array (#1488495)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rc083969 r45dd7c1  
    22=========================== 
    33 
     4- Fix host autoselection when default_host is an array (#1488495) 
    45- Move messages forwarding mode setting into Preferences 
    56- Add is_escaped attribute for html_select and html_textarea (#1488485) 
  • program/include/rcmail.php

    rb97f21a r45dd7c1  
    547547    if (is_array($default_host)) { 
    548548      $post_host = rcube_utils::get_input_value('_host', rcube_utils::INPUT_POST); 
     549      $post_user = rcube_utils::get_input_value('_user', rcube_utils::INPUT_POST); 
     550 
     551      list($user, $domain) = explode('@', $post_user); 
    549552 
    550553      // direct match in default_host array 
     
    552555        $host = $post_host; 
    553556      } 
    554  
    555557      // try to select host by mail domain 
    556       list($user, $domain) = explode('@', rcube_utils::get_input_value('_user', rcube_utils::INPUT_POST)); 
    557       if (!empty($domain)) { 
     558      else if (!empty($domain)) { 
    558559        foreach ($default_host as $storage_host => $mail_domains) { 
    559560          if (is_array($mail_domains) && in_array_nocase($domain, $mail_domains)) { 
Note: See TracChangeset for help on using the changeset viewer.