Ticket #1484191: rc_changes.diff

File rc_changes.diff, 1.0 kB (added by alexey_dv, 2 years ago)

the file diff

  • program/include/rcube_imap.inc

     
    15541554    if (is_array($mbox_name)) 
    15551555      $a_mboxes = $mbox_name; 
    15561556    else if (is_string($mbox_name) && strlen($mbox_name)) 
    1557       $a_mboxes = explode(',', $mbox_name); 
     1557      $a_mboxes = (array)$mbox_name; 
    15581558 
    15591559    // let this common function do the main work 
    15601560    return $this->_change_subscription($a_mboxes, 'subscribe'); 
     
    21442144    $pos = strpos($input, '=?'); 
    21452145    if ($pos !== false) 
    21462146      { 
     2147      // rfc: all line breaks or other characters not found in the Base64 Alphabet must be ignored by decoding software 
     2148      // delete all blanks between MIME-lines, differently we can receive unnecessary blanks and broken utf-8 symbols 
     2149      $input = preg_replace("/\?=\s+=\?/", '?==?', $input); 
     2150 
    21472151      $out = substr($input, 0, $pos); 
    21482152 
    21492153      $end_cs_pos = strpos($input, "?", $pos+2);