- Fix attaching more than nine inline images (#1485759)
| | |
| | | CHANGELOG RoundCube Webmail |
| | | --------------------------- |
| | | |
| | | 2009/03/01 (alec) |
| | | ---------- |
| | | - Fix attaching more than nine inline images (#1485759) |
| | | |
| | | 2009/02/27 (thomasb) |
| | | ---------- |
| | | - Fix mime-type detection using a hard-coded map (#1485311) |
| | |
| | | if (is_array($_SESSION['compose']['attachments'])) |
| | | foreach ($_SESSION['compose']['attachments'] as $id => $attachment) |
| | | { |
| | | $dispurl = '/\ssrc\s*=\s*[\'"]?\S+display-attachment\S+file=rcmfile' . $id . '[\'"]?/'; |
| | | $match = preg_match($dispurl, $message_body); |
| | | $dispurl = '/\ssrc\s*=\s*[\'"]*\S+display-attachment\S+file=rcmfile' . $id . '[\s\'"]\s*/'; |
| | | $match = preg_match($dispurl, $message_body, $matches); |
| | | if ($isHtml && ($match > 0)) |
| | | { |
| | | $message_body = preg_replace($dispurl, ' src="'.$attachment['name'].'"', $message_body); |