summaryrefslogtreecommitdiff
path: root/www/bozohttpd
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-10-26 20:01:46 +0000
committerwiz <wiz@pkgsrc.org>2002-10-26 20:01:46 +0000
commit0ba39c9fcf388572252262b571bbdd242f919198 (patch)
tree1965df4970157922fffa0b8cbdbe4e5a956fc40b /www/bozohttpd
parentf2417194ce6d30dda3558f80db08e3c6028b9bec (diff)
downloadpkgsrc-0ba39c9fcf388572252262b571bbdd242f919198.tar.gz
Add a patch that fixes a problem with some quoted chars and cgibins.
Patch provided by mrg -- thanks! Bump PKGREVISION.
Diffstat (limited to 'www/bozohttpd')
-rw-r--r--www/bozohttpd/Makefile3
-rw-r--r--www/bozohttpd/distinfo3
-rw-r--r--www/bozohttpd/patches/patch-aa32
3 files changed, 36 insertions, 2 deletions
diff --git a/www/bozohttpd/Makefile b/www/bozohttpd/Makefile
index e52e0346354..42511f9c5f3 100644
--- a/www/bozohttpd/Makefile
+++ b/www/bozohttpd/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.27 2002/09/13 09:30:06 mrg Exp $
+# $NetBSD: Makefile,v 1.28 2002/10/26 20:01:46 wiz Exp $
#
DISTNAME= bozohttpd-5.15
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo
index 7526dc14510..4c085f9db96 100644
--- a/www/bozohttpd/distinfo
+++ b/www/bozohttpd/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.20 2002/09/13 09:30:06 mrg Exp $
+$NetBSD: distinfo,v 1.21 2002/10/26 20:01:46 wiz Exp $
SHA1 (bozohttpd-5.15.tar.bz2) = bb3d549e7d07c38af514868fa08e0bd8cbb31c82
Size (bozohttpd-5.15.tar.bz2) = 21750 bytes
+SHA1 (patch-aa) = e03b3e2ceae208298a8201e9e0aff40624828ad7
diff --git a/www/bozohttpd/patches/patch-aa b/www/bozohttpd/patches/patch-aa
new file mode 100644
index 00000000000..d6a80173221
--- /dev/null
+++ b/www/bozohttpd/patches/patch-aa
@@ -0,0 +1,32 @@
+$NetBSD: patch-aa,v 1.6 2002/10/26 20:01:46 wiz Exp $
+
+--- bozohttpd.c.orig Fri Sep 13 11:02:14 2002
++++ bozohttpd.c
+@@ -1577,13 +1577,26 @@ fix_url_percent(request)
+ http_req *request;
+ {
+ char *s, *t, buf[3];
++ char *url, *end; /* if end is not-zero, we don't translate beyond that */
++
++ url = request->url;
++ if (strncmp(url + 1, CGIBIN_PREFIX, CGIBIN_PREFIX_LEN) == 0) {
++ end = strchr(request->url + CGIBIN_PREFIX_LEN, '?');
++ } else
++ end = 0;
+
+ /* fast forward to the first % */
+- if ((s = strchr(request->url, '%')) == NULL)
++ if ((s = strchr(url, '%')) == NULL)
+ return;
+
+ t = s;
+ do {
++ if (end && s >= end) {
++ debug((DEBUG_OBESE, "fu_%%: past end, filling out.."));
++ while (*s)
++ *t++ = *s++;
++ break;
++ }
+ debug((DEBUG_OBESE, "fu_%%: got s == %%, s[1]s[2] == %c%c",
+ s[1], s[2]));
+ if (s[1] == '\0' || s[2] == '\0')