diff options
author | alecpl <alec@alec.pl> | 2010-05-27 14:08:15 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-05-27 14:08:15 +0000 |
commit | c973abfd8b79e9fe96eb86398dae7ec97db69224 (patch) | |
tree | 947874d470354981843fc6f168deab9a152e7eff /program | |
parent | e55923241f19527e27a2884d3cb17f0d950a8b2a (diff) |
- fix regular expression for images src replacement
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/sendmail.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index d6143d82b..4229e7d3b 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -463,7 +463,7 @@ if (is_array($_SESSION['compose']['attachments'])) // This hook retrieves the attachment contents from the file storage backend $attachment = $RCMAIL->plugins->exec_hook('get_attachment', $attachment); - $dispurl = '/\ssrc\s*=\s*[\'"]*\S+display-attachment\S+file=rcmfile' . preg_quote($attachment['id']) . '[\s\'"]\s*/'; + $dispurl = '/\ssrc\s*=\s*[\'"]*\S+display-attachment\S+file=rcmfile' . preg_quote($attachment['id']) . '[\s\'"]*/'; $message_body = $MAIL_MIME->getHTMLBody(); if ($isHtml && (preg_match($dispurl, $message_body) > 0)) { $message_body = preg_replace($dispurl, ' src="'.$attachment['name'].'" ', $message_body); |