aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-28 22:10:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-28 22:10:25 +0000
commit660fa482d1447b59f24d994521e5049828fa41dd (patch)
tree1f9cf3dac35c5df97098fd85eb7bc0272246d2d7 /test/lua
parentde9a56dfb1ebd0fa05216e5ef566393c4bc40b9c (diff)
downloadrspamd-660fa482d1447b59f24d994521e5049828fa41dd.tar.gz
rspamd-660fa482d1447b59f24d994521e5049828fa41dd.zip
More fixes to url numeric conversions
Diffstat (limited to 'test/lua')
-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 e6b112870..0b385c063 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -53,6 +53,9 @@ context("URL check functions", function()
local pool = mpool.create()
-- input, parseable, {host, port, user, password, path, query, part}
local cases = {
+ {"http://%30%78%63%30%2e%30%32%35%30.01", true, { --0xc0.0250.01
+ host = '192.168.0.1',
+ }},
{"http://www.google.com/foo?bar=baz#", true, {
host = 'www.google.com', path = 'foo', query = 'bar=baz', tld = 'google.com'
}},