aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-13 15:05:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-13 15:05:21 +0100
commit869980fd240710636cc51bb8d085a354e8e18b12 (patch)
tree2a13778a451373b488ede297480335ae4be6e77f
parent137ceb2eb102229ebbbd06bef2681d689d035647 (diff)
downloadrspamd-869980fd240710636cc51bb8d085a354e8e18b12.tar.gz
rspamd-869980fd240710636cc51bb8d085a354e8e18b12.zip
[Minor] Fix userinfo encoding
-rw-r--r--src/libserver/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 2cfc7d147..01973a75a 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -3995,7 +3995,7 @@ rspamd_url_encode (struct rspamd_url *url, gsize *pdlen,
if (url->userlen > 0) {
ENCODE_URL_COMPONENT (rspamd_url_user_unsafe (url), url->userlen,
RSPAMD_URL_FLAGS_USERSAFE);
- *d++ = ':';
+ *d++ = '@';
}
ENCODE_URL_COMPONENT (rspamd_url_host_unsafe (url), url->hostlen,