diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-17 12:53:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-17 12:53:10 +0100 |
commit | 68a41d5fcfbe71682696c5118732e9453cea7361 (patch) | |
tree | 2d46bba8c414d7e448d3d131eaedf0e7e82eda32 /src/libutil/http.c | |
parent | dc38d08c27d49a3e95d65f1445457f7489b6b599 (diff) | |
download | rspamd-68a41d5fcfbe71682696c5118732e9453cea7361.tar.gz rspamd-68a41d5fcfbe71682696c5118732e9453cea7361.zip |
[Minor] Another fix to path normalisation
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r-- | src/libutil/http.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index ade3160cd..a5133695b 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -3780,9 +3780,12 @@ rspamd_http_normalize_path_inplace (gchar *path, guint len, guint *nlen) if (((o > path && *(o - 1) != '/') || (o == path)) && slash) { /* Preserve one slash */ *o++ = '/'; + slash = p; + } + else { + slash = NULL; } - slash = p; dot = NULL; /* Ignore last slash */ state = st_normal; |