diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-20 15:55:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-20 15:55:39 +0000 |
commit | f71dee6d40be52c69f5a90536e811db8e1f852f1 (patch) | |
tree | b6f02f94241528d29ec628a0ac2c66f5e32c68aa /test | |
parent | f5bebd97dba16d9994d49b5b8832b72950d511cd (diff) | |
download | rspamd-f71dee6d40be52c69f5a90536e811db8e1f852f1.tar.gz rspamd-f71dee6d40be52c69f5a90536e811db8e1f852f1.zip |
[Fix] Fix quoted-printable soft newlines bugged case
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/quoted_printable.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lua/unit/quoted_printable.lua b/test/lua/unit/quoted_printable.lua index cf667f8d4..29df0254d 100644 --- a/test/lua/unit/quoted_printable.lua +++ b/test/lua/unit/quoted_printable.lua @@ -102,6 +102,16 @@ context("Quoted-Printable encoding", function() 'Mailscape External Mail Flow Outbound Test=', 'asan found' }, + { + 'foo=\n\nbar', + 'foo\nbar', + 'Soft newline followed by hard newline (LF)', + }, + { + 'foo=\r\n\r\nbar', + 'foo\r\nbar', + 'Soft newline followed by hard newline (CRLF)', + }, } for _,c in ipairs(cases) do |