Changeset 2877 in subversion
- Timestamp:
- Aug 27, 2009 4:08:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_message.php
r2821 r2877 393 393 // part belongs to a related message and is linked 394 394 if ($message_ctype_secondary == 'related' 395 && ($mail_part->headers['content-id'] || $mail_part->headers['content-location'])) { 395 && preg_match('!^image/!', $mail_part->mimetype) 396 && ($mail_part->headers['content-id'] || $mail_part->headers['content-location'])) { 396 397 if ($mail_part->headers['content-id']) 397 398 $mail_part->content_id = preg_replace(array('/^</', '/>$/'), '', $mail_part->headers['content-id']); 398 399 if ($mail_part->headers['content-location']) 399 400 $mail_part->content_location = $mail_part->headers['content-base'] . $mail_part->headers['content-location']; 400 401 401 402 $this->inline_parts[] = $mail_part; 402 403 } 403 404 // is a regular attachment 404 else {405 else if (preg_match('!^[a-z]+/[a-z0-9-.]+$!i', $mail_part->mimetype)) { 405 406 if (!$mail_part->filename) 406 407 $mail_part->filename = 'Part '.$mail_part->mime_id;
Note: See TracChangeset
for help on using the changeset viewer.
