chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb04acf
)
cgi-fcgi-interp: support CGI command line arguments
author
Tony Finch
<dot@dotat.at>
Fri, 7 Oct 2016 12:57:57 +0000
(13:57 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/cprogs/cgi-fcgi-interp.c
b/cprogs/cgi-fcgi-interp.c
index 93f691ea6670ab3acdc990eb24f48c6c337a2d61..7aef026037b82ea70be482517f76dfe706a88a4d 100644
(file)
--- 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) {