commit 61ee193: [Minor] Add one more case

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Jun 18 19:42:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-18 16:22:04 +0100
URL: https://github.com/rspamd/rspamd/commit/61ee19336b5db2aee66cf7d7567da758a4e5a858

[Minor] Add one more case

---
 test/functional/messages/zerofont.eml | 2 ++
 test/rspamd_cxx_unit_utils.hxx        | 1 +
 2 files changed, 3 insertions(+)

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"},
 	};


More information about the Commits mailing list