commit 1f10961: [Fix] Fix urls encode function
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jan 13 14:00:09 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-01-13 13:58:42 +0000
URL: https://github.com/rspamd/rspamd/commit/1f10961d98ce1b0f8b3bcb1f4431eacbe5a01b5a (HEAD -> master)
[Fix] Fix urls encode function
---
src/libserver/url.c | 4 ++--
1 file 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);
}
More information about the Commits
mailing list