html_encode the + character

This commit is contained in:
Geoffrey 2020-10-02 16:31:10 +02:00
parent 78387c1ab1
commit bbab443f88

View file

@ -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;
}