From bf3bc9883e72c51d75a4ebbab1df7eb4c63cd6f7 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 12 Sep 2002 21:20:31 +0000 Subject: 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. --- www/bozohttpd/Makefile | 3 ++- www/bozohttpd/distinfo | 3 ++- www/bozohttpd/patches/patch-aa | 30 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 www/bozohttpd/patches/patch-aa (limited to 'www/bozohttpd') diff --git a/www/bozohttpd/Makefile b/www/bozohttpd/Makefile index 30c08382669..8bff835f1ba 100644 --- a/www/bozohttpd/Makefile +++ b/www/bozohttpd/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.25 2002/09/09 17:18:20 jlam Exp $ +# $NetBSD: Makefile,v 1.26 2002/09/12 21:20:31 wiz Exp $ # DISTNAME= bozohttpd-5.14 +PKGREVISION= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_LOCAL} EXTRACT_SUFX= .tar.bz2 diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo index 7b0b93c5a7d..3143928a3ba 100644 --- a/www/bozohttpd/distinfo +++ b/www/bozohttpd/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.18 2002/09/09 17:13:33 jlam Exp $ +$NetBSD: distinfo,v 1.19 2002/09/12 21:20:32 wiz Exp $ SHA1 (bozohttpd-5.14.tar.bz2) = ce4eeb87b8005b4eac5d52c8647c0ed3cae9f56e Size (bozohttpd-5.14.tar.bz2) = 21666 bytes +SHA1 (patch-aa) = 8ef0c003815cc4cae64b263742e22717501f9d0d 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 : "")); -- cgit v1.2.3