BUG/MINOR: mux-fcgi: Don't url-decode the QUERY_STRING parameter anymore
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Jul 2020 13:44:37 +0000 (15:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Jul 2020 14:27:49 +0000 (16:27 +0200)
commit9e20a4c36498243314e54594c46defc8f4201182
treeaf3d48d40e20a9d9bc8ccccee842b1f20c5913b5
parent81120e6ea286ae3f2566959167fb56a7d1f0de19
BUG/MINOR: mux-fcgi: Don't url-decode the QUERY_STRING parameter anymore

In the CGI/1.1 specification, it is specified the QUERY_STRING must not be
url-decoded. However, this parameter is sent decoded because it is extracted
after the URI's path decoding. Now, the query-string is first extracted, then
the script part of the path is url-decoded. This way, the QUERY_STRING parameter
is no longer decoded.

This patch should fix the issue #769. It must be backported as far as 2.1.

(cherry picked from commit 0f17a4444e641b6e16bff49e3bd99466f637b272)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 327bbfc3b81a8c22e2bb645ee6f9bb43b70c0276)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/mux_fcgi.c