chiark / gitweb /
cgi-fcgi-interp: support CGI command line arguments
authorTony Finch <dot@dotat.at>
Fri, 7 Oct 2016 12:57:57 +0000 (13:57 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 5 Nov 2016 12:24:30 +0000 (12:24 +0000)
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

cprogs/cgi-fcgi-interp.c

index 93f691ea6670ab3acdc990eb24f48c6c337a2d61..7aef026037b82ea70be482517f76dfe706a88a4d 100644 (file)
@@ -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) {