Changeset b0d56e9 in github for program/include/rcube_message.php


Ignore:
Timestamp:
Jul 6, 2009 1:44:35 PM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
fb3e28f
Parents:
2818f8e
Message:
  • simple fix for malformed Content-Disposition (#1485965)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_message.php

    rcc97ea0 rb0d56e9  
    342342        else if (($primary_type == 'text' && ($secondary_type == 'plain' || $secondary_type == 'html') && $mail_part->disposition != 'attachment') || 
    343343                 ($primary_type == 'message' && ($secondary_type == 'delivery-status' || $secondary_type == 'disposition-notification'))) { 
    344            
     344 
    345345          // add text part if we're not in alternative mode or if it matches the prefs 
    346346          if (!$this->parse_alternative || 
     
    367367          continue; 
    368368           
    369         // part is Microsoft outlook TNEF (winmail.dat) 
     369        // part is Microsoft Outlook TNEF (winmail.dat) 
    370370        else if ($primary_type == 'application' && $secondary_type == 'ms-tnef') { 
    371371          foreach ((array)$this->imap->tnef_decode($mail_part, $structure->headers['uid']) as $tnef_part) { 
     
    375375        } 
    376376 
    377         // part is file/attachment 
    378         else if ($mail_part->disposition == 'attachment' || $mail_part->disposition == 'inline' || 
     377        // part is a file/attachment 
     378        else if (preg_match('/^(inline|attach)/', $mail_part->disposition) || 
    379379                 $mail_part->headers['content-id'] || (empty($mail_part->disposition) && $mail_part->filename)) { 
     380 
    380381          // skip apple resource forks 
    381382          if ($message_ctype_secondary == 'appledouble' && $secondary_type == 'applefile') 
     
    393394            } 
    394395          } 
    395           // is regular attachment 
     396          // is a regular attachment 
    396397          else { 
    397398            if (!$mail_part->filename) 
Note: See TracChangeset for help on using the changeset viewer.