summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-12 14:39:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-12 14:39:09 +0100
commitdb4ef545172db3417684695df1ecca3de001c93f (patch)
tree8eec404329944875c592555fdf826bfea69390f2 /test
parent0adcee676505367509681d03ed4e7d611f6de6a0 (diff)
downloadrspamd-db4ef545172db3417684695df1ecca3de001c93f.tar.gz
rspamd-db4ef545172db3417684695df1ecca3de001c93f.zip
[Minor] Fix parsing of some bogus urls
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/url.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index 97eda91c6..40d684bfc 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -133,6 +133,9 @@ context("URL check functions", function()
{"http://hehe。example。com#test", true, {
host = 'hehe.example.com', fragment = 'test'
}},
+ {"http:////$%^&****((@example.org//#f@f", true, {
+ user = '$%^&****((', host = 'example.org', fragment = 'f@f'
+ }},
}
-- Some cases from https://code.google.com/p/google-url/source/browse/trunk/src/url_canon_unittest.cc