diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-18 16:22:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-18 20:35:24 +0100 |
commit | 61ee19336b5db2aee66cf7d7567da758a4e5a858 (patch) | |
tree | ca1cdc4290a3b3b92af2ff216564bec10f688fba /test | |
parent | 64cbf85c850e5e48c6efc0785a0afbf059830773 (diff) | |
download | rspamd-61ee19336b5db2aee66cf7d7567da758a4e5a858.tar.gz rspamd-61ee19336b5db2aee66cf7d7567da758a4e5a858.zip |
[Minor] Add one more case
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/messages/zerofont.eml | 2 | ||||
-rw-r--r-- | test/rspamd_cxx_unit_utils.hxx | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/messages/zerofont.eml b/test/functional/messages/zerofont.eml index c5242d95d..06af493fa 100644 --- a/test/functional/messages/zerofont.eml +++ b/test/functional/messages/zerofont.eml @@ -14,5 +14,7 @@ Content-Type: text/html <body class="activity-stream"> <div>fi<span style="FONT-SIZE: 0px">le </span>sh<span style="FONT-SIZE: 0px">aring </span></div> <a href="https://example.com">test url</a> + +<div>foo<div>bar</div>ttt<div>ololo</div>baz</div> </body> </html> diff --git a/test/rspamd_cxx_unit_utils.hxx b/test/rspamd_cxx_unit_utils.hxx index f9aa86a95..a65adab70 100644 --- a/test/rspamd_cxx_unit_utils.hxx +++ b/test/rspamd_cxx_unit_utils.hxx @@ -36,6 +36,7 @@ TEST_CASE("rspamd_strip_smtp_comments_inplace") { {"abc(foo(bar))", "abc"}, {"(bar)abc(foo)", "abc"}, {"ab(ololo)c(foo)", "abc"}, + {"ab(olo\\)lo)c(foo)", "abc"}, {"ab(trol\\\1lo)c(foo)", "abc"}, {"\\ab(trol\\\1lo)c(foo)", "abc"}, }; |