diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-18 15:44:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-18 15:44:35 +0100 |
commit | 37f19ff44db4601bea40fef01db776c312e48ea1 (patch) | |
tree | 03cd225602138993a5699dcac236a65a8a867e4e /test/lua | |
parent | d3b8d3ea5a0f20e83ca3b64bbe896a1bdaadcd95 (diff) | |
download | rspamd-37f19ff44db4601bea40fef01db776c312e48ea1.tar.gz rspamd-37f19ff44db4601bea40fef01db776c312e48ea1.zip |
[Test] Add some tests for IDNA dots in urls
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/unit/url.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua index 9647db79b..bd5fc062c 100644 --- a/test/lua/unit/url.lua +++ b/test/lua/unit/url.lua @@ -118,6 +118,21 @@ context("URL check functions", function() {"http:www.twitter.com#test", true, { host = 'www.twitter.com', fragment = 'test' }}, + {"http://example。com#test", true, { + host = 'example.com', fragment = 'test' + }}, + {"http://hoho.example。com#test", true, { + host = 'hoho.example.com', fragment = 'test' + }}, + {"http://hoho。example。com#test", true, { + host = 'hoho.example.com', fragment = 'test' + }}, + {"http://hoho.example。com#test", true, { + host = 'hoho.example.com', fragment = 'test' + }}, + {"http://hehe。example。com#test", true, { + host = 'hehe.example.com', fragment = 'test' + }}, } -- Some cases from https://code.google.com/p/google-url/source/browse/trunk/src/url_canon_unittest.cc |