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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user