From 1cdb21d853ed2c3ef2d6cf4988e4433eba613bea Mon Sep 17 00:00:00 2001 From: Geoffrey <11151445+g3offrey@users.noreply.github.com> Date: Fri, 2 Oct 2020 16:31:10 +0200 Subject: [PATCH] html_encode the + character --- hydra-http-form.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hydra-http-form.c b/hydra-http-form.c index 92d5a9f..88f2e6b 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -582,6 +582,8 @@ char *html_encode(char *string) { ret = hydra_strrep(ret, "#", "%23"); if (index(ret, '=') != NULL) ret = hydra_strrep(ret, "=", "%3D"); + if (index(ret, '+') != NULL) + ret = hydra_strrep(ret, "+", "%2B"); return ret; }