aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-30 11:20:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-30 11:26:10 +0100
commit8b66801d1a9a82fde251b321945091a153eeadbb (patch)
tree2b52b435e475812843e0eddf10d318cf5912973e /test
parent5adc1d807085ec9ca5eb5d58553c8e4129824ef8 (diff)
downloadrspamd-8b66801d1a9a82fde251b321945091a153eeadbb.tar.gz
rspamd-8b66801d1a9a82fde251b321945091a153eeadbb.zip
[Minor] Try to deal with urls with backslashes in path
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/url.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index 282d79290..58dfada00 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -138,7 +138,11 @@ context("URL check functions", function()
}},
{"http://@@example.com", true, {
user = "@", host = "example.com"
- }}
+ }},
+ {"https://example.com\\_Resources\\ClientImages\\UserData?ol\\o#ololo\\", true, {
+ host = "example.com", path = "_Resources/ClientImages/UserData",
+ query = "ol\\o", fragment = "ololo\\",
+ }},
}
-- Some cases from https://code.google.com/p/google-url/source/browse/trunk/src/url_canon_unittest.cc