diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-13 13:58:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-13 13:58:42 +0000 |
commit | 1f10961d98ce1b0f8b3bcb1f4431eacbe5a01b5a (patch) | |
tree | 763d7414c05411e1813f1a337e5c37408c3d4700 /src | |
parent | 5309a007ea683b33334c9a853897a211be5657c5 (diff) | |
download | rspamd-1f10961d98ce1b0f8b3bcb1f4431eacbe5a01b5a.tar.gz rspamd-1f10961d98ce1b0f8b3bcb1f4431eacbe5a01b5a.zip |
[Fix] Fix urls encode function
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index cb9c214d2..d792177e8 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -3677,13 +3677,13 @@ rspamd_url_encode (struct rspamd_url *url, gsize *pdlen, } if (url->querylen > 0) { - *d++ = '/'; + *d++ = '?'; ENCODE_URL_COMPONENT ((guchar *)url->query, url->querylen, RSPAMD_URL_FLAGS_QUERYSAFE); } if (url->fragmentlen > 0) { - *d++ = '/'; + *d++ = '#'; ENCODE_URL_COMPONENT ((guchar *)url->fragment, url->fragmentlen, RSPAMD_URL_FLAGS_FRAGMENTSAFE); } |