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 13:44:39 +0000 (15:44 +0200)
commit0f17a4444e641b6e16bff49e3bd99466f637b272
treeb6bb985f35c3040bc52ad079c0b889f1bd56600b
parentf1ea47d8960730c79cc71fc634b3d7e5909d5683
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.
src/mux_fcgi.c