diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-19 18:33:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-19 18:33:16 +0000 |
commit | a4977e18de67905b2863514feeff7a77025d4087 (patch) | |
tree | 0c732e1ce5562c5a5cf57cb6508d3d5ac6aa7a40 /test | |
parent | f86e20edf67cb9bb947c61f8ef8e774faf2f8fbf (diff) | |
download | rspamd-a4977e18de67905b2863514feeff7a77025d4087.tar.gz rspamd-a4977e18de67905b2863514feeff7a77025d4087.zip |
[Rework] Fix various url extraction issues
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/url.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua index 24c354960..9647db79b 100644 --- a/test/lua/unit/url.lua +++ b/test/lua/unit/url.lua @@ -83,7 +83,9 @@ context("URL check functions", function() {"http:/\\www.google.com/foo?bar=baz#", true, { host = 'www.google.com', path = 'foo', query = 'bar=baz', tld = 'google.com' }}, - {"http://[www.google.com]/", false}, + {"http://[www.google.com]/", true, { + host = 'www.google.com', + }}, {"<test.com", true, { host = 'test.com', tld = 'test.com', }}, |