Ignore:
Timestamp:
Oct 20, 2010 8:24:21 AM (3 years ago)
Author:
alec
Message:
  • Fix handling of attachments when Content-Disposition is not inline nor attachment (#1487051)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_message.php

    r4114 r4116  
    449449                // part is a file/attachment 
    450450                else if (preg_match('/^(inline|attach)/', $mail_part->disposition) || 
    451                     $mail_part->headers['content-id'] || (empty($mail_part->disposition) && $mail_part->filename) 
     451                    $mail_part->headers['content-id'] || 
     452                    ($mail_part->filename && 
     453                        (empty($mail_part->disposition) || preg_match('/^[a-z0-9!#$&.+^_-]+$/i', $mail_part->disposition))) 
    452454                ) { 
    453455                    // skip apple resource forks 
Note: See TracChangeset for help on using the changeset viewer.