I#1156 - Composer: HTML email signature not stripped ][

Missed to advance after the end of the tag, when the match has any attributes.

Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1156
This commit is contained in:
Milan Crha
2020-10-15 14:30:43 +02:00
parent 4a66ccf042
commit 8a4d73d13c

View File

@ -57,6 +57,16 @@ is_html_newline_marker (const gchar *text,
gint caselen = strlen (cases[ii]);
if (len >= caselen && g_ascii_strncasecmp (text, cases[ii], caselen) == 0) {
if (cases[ii][caselen - 1] != '>') {
/* Need to find the tag end, in a lazy way */
while (text[caselen] && text[caselen] != '>')
caselen++;
/* Advance after the '>' */
if (text[caselen])
caselen++;
}
*advance_by_chars = caselen;
return TRUE;
}