From bbab443f8803ddad658a1378cdc26879fec13876 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 eb5a4ce..db1e84e 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -576,6 +576,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; }