summaryrefslogtreecommitdiff
path: root/www/bozohttpd/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-09-12 21:20:31 +0000
committerwiz <wiz@pkgsrc.org>2002-09-12 21:20:31 +0000
commit36d1d7d2142bfd6bcdbd6ffe283d7e538f106b74 (patch)
tree1625833847b39e67d6b646dc97e9d4e2f60a0195 /www/bozohttpd/patches
parent81817a95e6e65f5c29660b0d07945901c871bff2 (diff)
downloadpkgsrc-36d1d7d2142bfd6bcdbd6ffe283d7e538f106b74.tar.gz
Fix a problem with cgi-bin's and the GET method.
Patch from mrg, due to be included in the next release, but who knows when that will be ;) Bump to 5.14nb1.
Diffstat (limited to 'www/bozohttpd/patches')
-rw-r--r--www/bozohttpd/patches/patch-aa30
1 files changed, 30 insertions, 0 deletions
diff --git a/www/bozohttpd/patches/patch-aa b/www/bozohttpd/patches/patch-aa
new file mode 100644
index 00000000000..1ecc1eb885b
--- /dev/null
+++ b/www/bozohttpd/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.4 2002/09/12 21:20:32 wiz Exp $
+
+--- bozohttpd.c.orig Fri Aug 23 07:43:44 2002
++++ bozohttpd.c
+@@ -1434,6 +1434,12 @@ process_cgi(request)
+ if (request->method == HTTP_HEAD)
+ goto print_cgi_header;
+
++ if ((s = strchr(url, '?')) != NULL) {
++ *s++ = '\0';
++ query = s;
++ } else
++ query = NULL;
++
+ if ((s = strchr(url + 1, '/')) != NULL) {
+ command = malloc(s - url);
+ if (command == NULL)
+@@ -1449,12 +1455,6 @@ process_cgi(request)
+ if (*command == '/')
+ command++;
+ }
+-
+- if ((s = strchr(url, '?')) != NULL) {
+- *s++ = '\0';
+- query = s;
+- } else
+- query = NULL;
+
+ debug((DEBUG_FAT, "process_cgi: cmd %s info %s query %s",
+ command, info, query ? query : "<null>"));