Browse Source

[Fix] Strip '\r\n' properly

tags/1.3.0
Vsevolod Stakhov 8 years ago
parent
commit
22ea8ed506
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/libmime/message.c

+ 4
- 0
src/libmime/message.c View File

@@ -679,6 +679,10 @@ rspamd_normalize_text_part (struct rspamd_task *task,
p = memchr (c, '\n', end - c);

if (p) {
if (*(p - 1) == '\r') {
p --;
}

if (p > c) {
g_byte_array_append (part->stripped_content, c, p - c);
}

Loading…
Cancel
Save