[Commits] [SCM] claws branch, master, updated. 4.2.0-65-g2761674cb

wwp at claws-mail.org wwp at claws-mail.org
Thu Feb 29 13:17:57 CET 2024


The branch, master has been updated
       via  2761674cb1c1c82a1ed52793dbdd5a7cb32466dd (commit)
      from  8929ba02d72822f01966fb824b3f0afb40dca2a7 (commit)

Summary of changes:
 src/enriched.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 2761674cb1c1c82a1ed52793dbdd5a7cb32466dd
Author: wwp <subscript at free.fr>
Date:   Thu Feb 29 13:17:54 2024 +0100

    fix bug 4754, 'text/enriched literal less-than sign sequence handled incorrectly' (by Viatrix)

diff --git a/src/enriched.c b/src/enriched.c
index d476b49a6..0b14d22c9 100644
--- a/src/enriched.c
+++ b/src/enriched.c
@@ -86,7 +86,11 @@ gchar *ertf_parse(ERTFParser *parser)
 	while (*parser->bufp != '\0') {
 		switch (*parser->bufp) {
 			case '<':
-				if (parser->str->len == 0)
+				if (parser->bufp[1]=='<') {
+					ertf_append_char(parser,'<');
+					parser->bufp+=2;
+				}
+				else if (parser->str->len == 0)
 					ertf_parse_tag(parser);
 				else
 					return parser->str->str;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list