Fix blank image in html_signature when saving identity changes (#1490412)

pull/280/head
Aleksander Machniak 9 years ago
parent a76693ef4c
commit 4312ac809c

@ -26,6 +26,7 @@ RELEASE 1.1.2
- Fix attached file path unsetting in database_attachments plugin (#1490393)
- Fix issues when using moduserprefs.sh without --user argument (#1490399)
- Fix potential info disclosure issue by protecting directory access (#1490378)
- Fix blank image in html_signature when saving identity changes (#1490412)
RELEASE 1.1.1
-------------

@ -208,7 +208,7 @@ function rcmail_attach_images($html)
global $RCMAIL;
$offset = 0;
$regexp = '/\s(poster|src)\s*=\s*[\'"]*\S+upload-display\S+file=rcmfile([0-9]+)[\s\'"]*/';
$regexp = '/\s(poster|src)\s*=\s*[\'"]*\S+upload-display\S+file=rcmfile(\w+)[\s\'"]*/';
while (preg_match($regexp, $html, $matches, 0, $offset)) {
$file_id = $matches[2];

Loading…
Cancel
Save