diff options
| author | estadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-09-27 12:58:02 +0000 |
|---|---|---|
| committer | estadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-09-27 12:58:02 +0000 |
| commit | 1b770265b0a582a25a6b14b217c8c8a6b44ce6ef (patch) | |
| tree | 515446ea89f1accbd8deaf675afd734d2bd24c37 | |
| parent | 3cb7d657e3229ca4e86e4bfcda0d43913ad6b75c (diff) | |
corrected duplicate emoticon fix.
git-svn-id: https://svn.roundcube.net/trunk@357 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/sendmail.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc index 3cf5bd1f7..c3e0170fe 100644 --- a/roundcubemail/program/steps/mail/sendmail.inc +++ b/roundcubemail/program/steps/mail/sendmail.inc @@ -101,21 +101,21 @@ function rcmail_attach_emoticons(&$mime_message) $pos + strlen($searchstr), $pos2 - ($pos + strlen($searchstr))); + $body_post = substr($body, $pos2); + if (! in_array($image_name, $included_images)) { - $body_post = substr($body, $pos2); - // add the image to the MIME message $img_file = $INSTALL_PATH . '/' . $searchstr . $image_name; if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name)) { show_message("emoticonerror", 'error'); } - - $body = $body_pre . 'cid:_' . $image_name . $body_post; array_push($included_images, $image_name); } + $body = $body_pre . 'cid:_' . $image_name . $body_post; + $last_img_pos = $pos2; } |
