Changeset 3993 in subversion


Ignore:
Timestamp:
Sep 26, 2010 7:17:03 AM (3 years ago)
Author:
thomasb
Message:

Fix base url resolution + better order for condition checks in rcube_mdb2 + updated changelog

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3989 r3993  
    22=========================== 
    33 
     4- Make alias setting in squirrelmail_usercopy plugin configurable (patch by pommi, #1487007) 
    45- Prevent from saving a non-existing skin path in user prefs (#1486936) 
    56- Improve handling of single-part messages with bogus BODYSTRUCTURE (#1486898) 
  • trunk/roundcubemail/program/include/rcube_mdb2.php

    r3989 r3993  
    124124        // Already connected 
    125125        if ($this->db_connected) { 
     126            // connected to read-write db, current connection is ok 
     127            if ($this->db_mode == 'w') 
     128                return; 
     129 
    126130            // no replication, current connection is ok for read and write 
    127131            if (empty($this->db_dsnr) || $this->db_dsnw == $this->db_dsnr) { 
     
    129133                return; 
    130134            } 
    131  
    132             // connected to read-write db, current connection is ok 
    133             if ($this->db_mode == 'w') 
    134                 return; 
    135135 
    136136            // Same mode, current connection is ok 
  • trunk/roundcubemail/program/include/rcube_shared.inc

    r3991 r3993  
    228228  if (strrpos($base_url, '/')>7) 
    229229  { 
    230     $host_url = substr($base_url, 0, strpos($base_url, '/')); 
     230    $host_url = substr($base_url, 0, strpos($base_url, '/', 7)); 
    231231    $base_url = substr($base_url, 0, strrpos($base_url, '/')); 
    232232  } 
Note: See TracChangeset for help on using the changeset viewer.