aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-08 18:59:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-08 18:59:56 +0000
commit87d53c9710e3d91f0770d9721d09ab6a0c709f0b (patch)
tree935a1efdc54a2b315512b6ca90fc020b490b3254 /src
parent46f219c1ad01fb4ea85f4bfedfbc718e1a46054d (diff)
downloadrspamd-87d53c9710e3d91f0770d9721d09ab6a0c709f0b.tar.gz
rspamd-87d53c9710e3d91f0770d9721d09ab6a0c709f0b.zip
[Fix] Normalize path in HTTP router
Diffstat (limited to 'src')
-rw-r--r--src/libutil/http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index a981d1f41..635bfea27 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -2998,6 +2998,10 @@ rspamd_http_router_finish_handler (struct rspamd_http_connection *conn,
if (u.field_set & (1 << UF_PATH)) {
lookup.begin = msg->url->str + u.field_data[UF_PATH].off;
lookup.len = u.field_data[UF_PATH].len;
+
+ rspamd_http_normalize_path_inplace ((gchar *)lookup.begin,
+ lookup.len,
+ &lookup.len);
}
else {
lookup.begin = msg->url->str;