commit 869980f: [Minor] Fix userinfo encoding

Vsevolod Stakhov vsevolod at highsecure.ru
Thu May 13 14:07:03 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-05-13 15:05:21 +0100
URL: https://github.com/rspamd/rspamd/commit/869980fd240710636cc51bb8d085a354e8e18b12 (HEAD -> master)

[Minor] Fix userinfo encoding

---
 src/libserver/url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,


More information about the Commits mailing list