diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-08 18:59:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-08 18:59:56 +0000 |
commit | 87d53c9710e3d91f0770d9721d09ab6a0c709f0b (patch) | |
tree | 935a1efdc54a2b315512b6ca90fc020b490b3254 /src | |
parent | 46f219c1ad01fb4ea85f4bfedfbc718e1a46054d (diff) | |
download | rspamd-87d53c9710e3d91f0770d9721d09ab6a0c709f0b.tar.gz rspamd-87d53c9710e3d91f0770d9721d09ab6a0c709f0b.zip |
[Fix] Normalize path in HTTP router
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/http.c | 4 |
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; |