Changeset 5543 in subversion


Ignore:
Timestamp:
Dec 5, 2011 2:24:36 AM (18 months ago)
Author:
alec
Message:
  • Apply fixes from trunk up to r5542
Location:
branches/release-0.7
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.7/CHANGELOG

    r5527 r5543  
    22=========================== 
    33 
     4- Fix navigation in messages search results 
    45- Improved handling of some malformed values encoded with quoted-printable (#1488232) 
    56- Add possibility to do LDAP bind before searching for bind DN 
  • branches/release-0.7/program/include/rcube_mdb2.php

    r5402 r5543  
    9292            $db_options['seqname_format'] = '%s'; 
    9393        } 
     94        $this->db_error     = false; 
     95        $this->db_error_msg = null; 
    9496 
    9597        $dbh = MDB2::connect($dsn, $db_options); 
     
    145147        $this->db_handle    = $this->dsn_connect($dsn); 
    146148        $this->db_connected = !PEAR::isError($this->db_handle); 
     149 
     150        // use write-master when read-only fails 
     151        if (!$this->db_connected && $mode == 'r') { 
     152            $mode = 'w'; 
     153            $this->db_handle    = $this->dsn_connect($this->db_dsnw); 
     154            $this->db_connected = !PEAR::isError($this->db_handle); 
     155        } 
    147156 
    148157        if ($this->db_connected) 
  • branches/release-0.7/program/js/app.js

    r5499 r5543  
    229229 
    230230          if (this.env.action == 'show') { 
    231             this.http_request('pagenav', '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox), 
     231            this.http_request('pagenav', '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox) 
     232              + (this.env.search_request ? '&_search='+this.env.search_request : ''), 
    232233              this.display_message('', 'loading')); 
    233234          } 
  • branches/release-0.7/program/steps/mail/attachments.inc

    r5226 r5543  
    2626 
    2727$COMPOSE_ID = get_input_value('_id', RCUBE_INPUT_GPC); 
    28 $_SESSION['compose'] = $_SESSION['compose_data_'.$COMPOSE_ID]; 
     28$COMPOSE    = null; 
    2929 
    30 if (!$_SESSION['compose']) { 
     30if ($COMPOSE_ID && $_SESSION['compose_data_'.$COMPOSE_ID]) 
     31  $COMPOSE =& $_SESSION['compose_data_'.$COMPOSE_ID]; 
     32 
     33if (!$COMPOSE) { 
    3134  die("Invalid session var!"); 
    3235} 
     
    3942  if (preg_match('/^rcmfile(\w+)$/', $_POST['_file'], $regs)) 
    4043    $id = $regs[1]; 
    41   if ($attachment = $_SESSION['compose']['attachments'][$id]) 
     44  if ($attachment = $COMPOSE['attachments'][$id]) 
    4245    $attachment = $RCMAIL->plugins->exec_hook('attachment_delete', $attachment); 
    4346  if ($attachment['status']) { 
    44     if (is_array($_SESSION['compose']['attachments'][$id])) { 
    45       unset($_SESSION['compose']['attachments'][$id]); 
     47    if (is_array($COMPOSE['attachments'][$id])) { 
     48      unset($COMPOSE['attachments'][$id]); 
    4649      $OUTPUT->command('remove_from_attachment_list', "rcmfile$id"); 
    4750    } 
    4851  } 
    49    
     52 
    5053  $OUTPUT->send(); 
    5154  exit; 
     
    5760  if (preg_match('/^rcmfile(\w+)$/', $_GET['_file'], $regs)) 
    5861    $id = $regs[1]; 
    59   if ($attachment = $_SESSION['compose']['attachments'][$id]) 
     62  if ($attachment = $COMPOSE['attachments'][$id]) 
    6063    $attachment = $RCMAIL->plugins->exec_hook('attachment_display', $attachment); 
    61      
     64 
    6265  if ($attachment['status']) { 
    6366    if (empty($attachment['size'])) 
     
    6669    header('Content-Type: ' . $attachment['mimetype']); 
    6770    header('Content-Length: ' . $attachment['size']); 
    68      
     71 
    6972    if ($attachment['data']) 
    7073      echo $attachment['data']; 
     
    7780// attachment upload action 
    7881 
    79 if (!is_array($_SESSION['compose']['attachments'])) { 
    80   $_SESSION['compose']['attachments'] = array(); 
     82if (!is_array($COMPOSE['attachments'])) { 
     83  $COMPOSE['attachments'] = array(); 
    8184} 
    8285 
     
    108111      // store new attachment in session 
    109112      unset($attachment['status'], $attachment['abort']); 
    110       $_SESSION['compose']['attachments'][$id] = $attachment; 
     113      $COMPOSE['attachments'][$id] = $attachment; 
    111114 
    112       if (($icon = $_SESSION['compose']['deleteicon']) && is_file($icon)) { 
     115      if (($icon = $COMPOSE['deleteicon']) && is_file($icon)) { 
    113116        $button = html::img(array( 
    114117          'src' => $icon, 
  • branches/release-0.7/program/steps/mail/compose.inc

    r5527 r5543  
    347347  // we have a set of recipients stored is session 
    348348  if ($header == 'to' && ($mailto_id = $COMPOSE['param']['mailto']) 
    349       && $COMPOSE[$mailto_id] 
     349      && $_SESSION['mailto'][$mailto_id] 
    350350  ) { 
    351     $fvalue = urldecode($COMPOSE[$mailto_id]); 
     351    $fvalue = urldecode($_SESSION['mailto'][$mailto_id]); 
    352352    $decode_header = false; 
     353 
     354    // make session to not grow up too much 
     355    unset($_SESSION['mailto'][$mailto_id]); 
     356    $COMPOSE['param']['to'] = $fvalue; 
    353357  } 
    354358  else if (!empty($_POST['_'.$header])) { 
  • branches/release-0.7/program/steps/settings/save_prefs.inc

    r5415 r5543  
    146146    if (!$OUTPUT->set_skin($a_user_prefs['skin'])) 
    147147      unset($a_user_prefs['skin']); 
     148    else if ($RCMAIL->config->get('skin') != $a_user_prefs['skin']) 
     149      $OUTPUT->command('reload', 500); 
    148150 
    149151    // force min size 
Note: See TracChangeset for help on using the changeset viewer.