Skip to content

Commit

Permalink
[Fix] Fix parsing of escape characters in quoted pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Nov 18, 2020
1 parent 20667e8 commit 0c18f2f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/libmime/email_addr.c
Expand Up @@ -407,7 +407,15 @@ rspamd_email_address_from_mime (rspamd_mempool_t *pool, const gchar *hdr,
p ++;
break;
case parse_quoted:
if (*p == '"') {
if (*p == '\\') {
if (p > c) {
g_string_append_len (ns, c, p - c);
}

p ++;
c = p;
}
else if (*p == '"') {
if (p > c) {
g_string_append_len (ns, c, p - c);
}
Expand Down

0 comments on commit 0c18f2f

Please sign in to comment.