Fullwidth characters enclosed in "<" and ">" are removed in email notifications
Hi, I'm using Redmine ver.3.4.7 and multi-byte environment(Japanese).
I found a bug in mail notifications function.
When I update a ticket with the comments below
The less-than sign, grater-than sign, and multi-byte "BBB" are deleted in the mail, while the ticket itself is properly updated.
Note that the first sentence is written using single-byte characters, and the second one is written using multi-byte characters except less-than sign(<) and grater-than sign(>).
It will not happen when the letters are quoted with < pre > and < /pre >.
Neither It will not happen when html mail is not used.
See the attached for details.
#2 Updated by Masaomi Yoshida almost 4 years ago
Thanks for prompt response and trying to reproduce.
I forgot saying this but if characters are all single-byte in < and >, the bug will not happen.
It happens only when the characters include multi-byte characters.
Please try using my sample in description section.
#5 Updated by Yuichi HARADA almost 4 years ago
- File 0001-Remove-unnecessary-trailing-white-spaces.patch added
- File 0002-Fullwidth-characters-enclosed-in-lt-and-gt.patch added
- File 0003-Add-tests.patch added
Escape processing of "<" and ">" is performed by
However, full-width characters could not be processed because they do not match the regular expression "
Change the regular expression "
\w" to "
_" and "
[[:alnum:]]" to match even full-width characters.
I attached the patches.