Changeset 4114 in subversion
- Timestamp:
- Oct 20, 2010 7:27:39 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_message.php
r4112 r4114 46 46 private $inline_parts = array(); 47 47 private $parse_alternative = false; 48 48 49 49 public $uid = null; 50 50 public $headers; … … 56 56 public $sender = null; 57 57 public $is_safe = false; 58 58 59 59 60 60 /** … … 106 106 $this->app->plugins->exec_hook('message_load', array('object' => $this)); 107 107 } 108 109 108 109 110 110 /** 111 111 * Return a (decoded) message header … … 125 125 } 126 126 127 127 128 128 /** 129 129 * Set is_safe var and session data … … 469 469 $this->parse_structure($mail_part, true); 470 470 } 471 // is a regular attachment 472 else if (preg_match(' !^[a-z0-9-.+_]+/[a-z0-9-.+_]+$!i', $part_mimetype)) {471 // is a regular attachment (content-type name regexp according to RFC4288.4.2) 472 else if (preg_match('/^[a-z0-9!#$&.+^_-]+\/[a-z0-9!#$&.+^_-]+$/i', $part_mimetype)) { 473 473 if (!$mail_part->filename) 474 474 $mail_part->filename = 'Part '.$mail_part->mime_id;
Note: See TracChangeset
for help on using the changeset viewer.
