alecpl
2008-05-12 fc231219823abe77a8e6b6421699a9bf99a69e48
program/include/rcube_imap.php
@@ -1903,6 +1903,9 @@
   */
  function clear_cache($key=NULL)
    {
    if (!$this->caching_enabled)
      return;
    if ($key===NULL)
      {
      foreach ($this->cache as $key => $data)
@@ -2341,8 +2344,10 @@
    $pos = strpos($input, '=?');
    if ($pos !== false)
      {
      // rfc: all line breaks or other characters not found in the Base64 Alphabet must be ignored by decoding software
      // delete all blanks between MIME-lines, differently we can receive unnecessary blanks and broken utf-8 symbols
      // rfc: all line breaks or other characters not found
      // in the Base64 Alphabet must be ignored by decoding software
      // delete all blanks between MIME-lines, differently we can
      // receive unnecessary blanks and broken utf-8 symbols
      $input = preg_replace("/\?=\s+=\?/", '?==?', $input);
      $out = substr($input, 0, $pos);
@@ -2359,9 +2364,10 @@
      return $out;
      }
    // no encoding information, use fallback
    return rcube_charset_convert($input, !empty($fallback) ? $fallback : $this->default_charset);
    return rcube_charset_convert($input,
      !empty($fallback) ? $fallback : $GLOBALS['CONFIG']['default_charset']);
    }