Changeset 141eb8a in github for program/steps/mail/sendmail.inc


Ignore:
Timestamp:
May 20, 2010 11:24:25 PM (3 years ago)
Author:
svncommit <devs@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
a2a3610
Parents:
dffcaa5
Message:

Fix double-addition of e-mail domain to content ID in HTML images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/sendmail.inc

    rdffcaa5 r141eb8a  
    9696/** 
    9797 * go from this: 
    98  * <img src=".../tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" /> 
     98 * <img src="http[s]://.../tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" /> 
    9999 * 
    100100 * to this: 
    101101 * 
    102  * <IMG src="cid:smiley-cool.gif"/> 
     102 * <img src="/path/on/server/.../tiny_mce/plugins/emotions/images/smiley-cool.gif" border="0" alt="Cool" title="Cool" /> 
    103103 * ... 
    104  * ------part... 
    105  * Content-Type: image/gif 
    106  * Content-Transfer-Encoding: base64 
    107  * Content-ID: <smiley-cool.gif> 
    108104 */ 
    109 function rcmail_attach_emoticons(&$mime_message) 
     105function rcmail_fix_emoticon_paths(&$mime_message) 
    110106{ 
    111107  global $CONFIG; 
     
    438434  $MAIL_MIME->setTXTBody($plugin['body']); 
    439435 
    440   // look for "emoticon" images from TinyMCE and copy into message as attachments 
    441   $message_body = rcmail_attach_emoticons($MAIL_MIME); 
     436  // look for "emoticon" images from TinyMCE and change their src paths to 
     437  // be file paths on the server instead of URL paths. 
     438  $message_body = rcmail_fix_emoticon_paths($MAIL_MIME); 
    442439} 
    443440else { 
Note: See TracChangeset for help on using the changeset viewer.