Bugzilla@Mozdev – Bug 26526
%file% falsely creates "The Variable %5C.. can not be used for new messages"
Last modified: 2019-07-28 07:12:03
You need to log in before you can comment on or make changes to this bug.
%file% falsely creates "The Variable %5C.. can not be used for new messages" when including images in a NEW Email.
This is caused by unnecessarily checking the <img> tag using the getProcessedText() function which is designed to parse an included HTML file for more ST4 variables %file(xxx,html)%. This is obviously nonsense when looking at a %file(xxx,img)% variable.
Created an attachment (id=8449) [details] 1.5.2 prerelease 14 Added quick bugfix. The bug should not affect users of Linux / OSX because file path does not contain the "\" character which will be HTML encoded during replacing the Data URI to make the image safe for Thunderbird 57. This had to be done because of the changes of making external content "safe" in the editor.
(In reply to comment #1) > This is caused by unnecessarily checking the <img> tag using the > getProcessedText() function which is designed to parse an included HTML file > for more ST4 variables %file(xxx,html)%. This is obviously nonsense when > looking at a %file(xxx,img)% variable. > just to unconfuse stuff, the variable syntax for %file% is: %file(filePath,encoding)% for html & txt files %file(imagePath,altText)% for images
Resolved fixed in Version 2.0 - 23/12/2018