From: Tony Finch Date: Fri, 7 Oct 2016 12:57:57 +0000 (+0100) Subject: cgi-fcgi-interp: support CGI command line arguments X-Git-Tag: archive/debian/5.0.0~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=1e5c90fcb5636e3571c9e42bf02891d1d41f4323;p=chiark-utils.git cgi-fcgi-interp: support CGI command line arguments If the QUERY_STRING does not contain an = then it is also passed on the command line. See https://tools.ietf.org/html/rfc3875#section-4.4 --- diff --git a/cprogs/cgi-fcgi-interp.c b/cprogs/cgi-fcgi-interp.c index 93f691e..7aef026 100644 --- a/cprogs/cgi-fcgi-interp.c +++ b/cprogs/cgi-fcgi-interp.c @@ -604,7 +604,6 @@ int main(int argc, const char *const *argv) { script = *argv++; if (!script) badusage("need script argument"); - if (*argv) badusage("too many arguments"); if (!stage2) {