summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-17 13:01:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-17 13:01:25 +0000
commitf8b183d8e96edabedea51ed712f12a3702e425fe (patch)
tree05dd246a4174c1479b0cbd82404feff9c3c0cd8a /test
parentfbf14aa0b0497d6707c7dd780376d81e4a1a7714 (diff)
downloadrspamd-f8b183d8e96edabedea51ed712f12a3702e425fe.tar.gz
rspamd-f8b183d8e96edabedea51ed712f12a3702e425fe.zip
[Minor] Another try to fix urls shifting when decoding
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/url.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index 7f337c8b2..3c56713d2 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -56,6 +56,10 @@ context("URL check functions", function()
end
cases = {
+ {'http://example.net/hello%20world.php?arg=x#fragment', true, {
+ host = 'example.net', fragment = 'fragment', query = 'arg=x',
+ path = 'hello world.php',
+ }},
{'http://example.net/?arg=%23#fragment', true, {
host = 'example.net', fragment = 'fragment', query = 'arg=#',
}},