Changeset 3837 in subversion for trunk/roundcubemail/program/lib/Mail/mime.php
- Timestamp:
- Jul 29, 2010 2:50:19 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/lib/Mail/mime.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/lib/Mail/mime.php
r3648 r3837 843 843 if (isset($this->_headers['From'])) { 844 844 // Bug #11381: Illegal characters in domain ID 845 if (preg_match( "|(@[0-9a-zA-Z\-\.]+)|", $this->_headers['From'], $matches)) {845 if (preg_match('#(@[0-9a-zA-Z\-\.]+)#', $this->_headers['From'], $matches)) { 846 846 $domainID = $matches[1]; 847 847 } else { 848 $domainID = "@localhost";848 $domainID = '@localhost'; 849 849 } 850 850 foreach ($this->_html_images as $i => $img) { 851 $cid = $this->_html_images[$i]['cid']; 851 $cid = $this->_html_images[$i]['cid']; 852 852 if (!preg_match('#'.preg_quote($domainID).'$#', $cid)) { 853 853 $this->_html_images[$i]['cid'] = $cid . $domainID; … … 996 996 return $ret; 997 997 } 998 998 999 999 // Use saved boundary 1000 1000 if (!empty($this->_build_params['boundary'])) { … … 1156 1156 if (preg_match('/^multipart\//i', $type)) { 1157 1157 if (empty($this->_build_params['boundary'])) { 1158 $this->_build_params['boundary'] = '=_' . md5(rand() . microtime()); 1158 $this->_build_params['boundary'] = '=_' . md5(rand() . microtime()); 1159 1159 } 1160 1160 … … 1189 1189 { 1190 1190 $this->_headers['From'] = $email; 1191 } 1192 1193 /** 1194 * Add an email to the To header 1195 * (multiple calls to this method are allowed) 1196 * 1197 * @param string $email The email direction to add 1198 * 1199 * @return void 1200 * @access public 1201 */ 1202 function addTo($email) 1203 { 1204 if (isset($this->_headers['To'])) { 1205 $this->_headers['To'] .= ", $email"; 1206 } else { 1207 $this->_headers['To'] = $email; 1208 } 1191 1209 } 1192 1210
Note: See TracChangeset
for help on using the changeset viewer.
