diff options
Diffstat (limited to 'program/lib/Mail/mime.php')
-rw-r--r-- | program/lib/Mail/mime.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/lib/Mail/mime.php b/program/lib/Mail/mime.php index ca54a8a6c..9065d469a 100644 --- a/program/lib/Mail/mime.php +++ b/program/lib/Mail/mime.php @@ -848,8 +848,10 @@ class Mail_mime $domainID = "@localhost"; } foreach ($this->_html_images as $i => $img) { - $this->_html_images[$i]['cid'] - = $this->_html_images[$i]['cid'] . $domainID; + $cid = $this->_html_images[$i]['cid']; + if (!preg_match('#'.preg_quote($domainID).'$#', $cid)) { + $this->_html_images[$i]['cid'] = $cid . $domainID; + } } } |