summaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-24 18:48:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-24 18:48:34 +0100
commitccc61a5f74f12a678ef931abfb652a51206d4210 (patch)
tree93874d17540b09c458fbb0496ae68a5546c22763 /src/ragel
parent5449dce46c1d56daa5d560df79dd8c06150f4717 (diff)
downloadrspamd-ccc61a5f74f12a678ef931abfb652a51206d4210.tar.gz
rspamd-ccc61a5f74f12a678ef931abfb652a51206d4210.zip
[Fix] Add spaces instead of newlines to the normalized content
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/newlines_strip.rl4
1 files changed, 2 insertions, 2 deletions
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;
}
}