https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292019-03-13T07:01:58ZRedmineRedmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=907132019-03-13T07:01:58ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/22617">email-4.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22617/email-4.png">email-4.png</a> added</li></ul><p>I cannot reproduce the problem in the current trunk (Redmine 4.0.2.devel.17938). I will check with 3.4 later.</p>
<p><img src="https://www.redmine.org/attachments/download/22617/email-4.png" style="border: 1px solid #ccc;width: 393px;" alt="" /></p> Redmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=907142019-03-13T07:08:04ZMasaomi Yoshida
<ul></ul><p>Maeda-san,<br />Thanks for prompt response and trying to reproduce.</p>
<p>I forgot saying this but if characters are all single-byte in < and >, the bug will not happen.<br />It happens only when the characters include multi-byte characters.</p>
<p>Please try using my sample in description section.<br /><pre>
aaa<bbb>ccc
AAA<BBB>CCC
</pre></p> Redmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=907152019-03-13T07:47:15ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li></ul><p>Masaomi Yoshida wrote:</p>
<blockquote>
<p>It happens only when the characters include multi-byte characters.</p>
</blockquote>
<p>Thank you for pointing it out. I have confirmed that the issue is reproducible in the current trunk.</p> Redmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=907162019-03-13T08:05:31ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Letters/Words are deleted in mails when multi-byte characters are in less-than sign(<) and grater-than sign(>)</i> to <i>Fullwidth characters enclosed in "<" and ">" are removed in email notifications</i></li></ul> Redmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=909702019-03-28T04:50:30ZYuichi HARADA
<ul><li><strong>File</strong> <a href="/attachments/22711">0001-Remove-unnecessary-trailing-white-spaces.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22711/0001-Remove-unnecessary-trailing-white-spaces.patch">0001-Remove-unnecessary-trailing-white-spaces.patch</a> added</li><li><strong>File</strong> <a href="/attachments/22712">0002-Fullwidth-characters-enclosed-in-lt-and-gt.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22712/0002-Fullwidth-characters-enclosed-in-lt-and-gt.patch">0002-Fullwidth-characters-enclosed-in-lt-and-gt.patch</a> added</li><li><strong>File</strong> <a href="/attachments/22713">0003-Add-tests.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22713/0003-Add-tests.patch">0003-Add-tests.patch</a> added</li></ul><p>Escape processing of "<" and ">" is performed by <code>RedCloth3#escape_html_tags</code> .<br /><a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/trunk/lib/redmine/wiki_formatting/textile/redcloth3.rb#L1218">source:/trunk/lib/redmine/wiki_formatting/textile/redcloth3.rb#L1218</a></p>
<p>However, full-width characters could not be processed because they do not match the regular expression "<code>\w</code>".<br />Change the regular expression "<code>\w</code>" to "<code>_</code>" and "<code>[[:alnum:]]</code>" to match even full-width characters.</p>
<p>I attached the patches.</p> Redmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=909732019-03-28T08:00:17ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul> Redmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=909972019-03-29T09:50:33ZGo MAEDA
<ul></ul><p>I tested the patch and found that the problem still remains for strings such as "<###>" and "<あいうえお>".</p> Redmine - Defect #31021: Fullwidth characters enclosed in "<" and ">" are removed in email notificationshttps://www.redmine.org/issues/31021?journal_id=913182019-04-23T15:44:46ZGo MAEDA
<ul><li><strong>Target version</strong> deleted (<del><i>Candidate for next minor release</i></del>)</li></ul>