From: Vsevolod Stakhov Date: Sun, 24 Jul 2016 17:48:34 +0000 (+0100) Subject: [Fix] Add spaces instead of newlines to the normalized content X-Git-Tag: 1.3.0~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ccc61a5f74f12a678ef931abfb652a51206d4210;p=rspamd.git [Fix] Add spaces instead of newlines to the normalized content --- diff --git a/src/ragel/newlines_strip.rl b/src/ragel/newlines_strip.rl index 190a759ac..a0e239bc3 100644 --- a/src/ragel/newlines_strip.rl +++ b/src/ragel/newlines_strip.rl @@ -4,7 +4,7 @@ action Double_CRLF { if (!crlf_added && p > c) { (*newlines_count)++; - g_byte_array_append (data, (const guint8 *)"\n", 1); + g_byte_array_append (data, (const guint8 *)" ", 1); c = p; } @@ -34,7 +34,7 @@ action Line_CRLF { if (!crlf_added) { if (is_html || g_ascii_ispunct (last_c)) { - g_byte_array_append (data, (const guint8 *)"\n", 1); + g_byte_array_append (data, (const guint8 *)" ", 1); crlf_added = TRUE; } }