diff options
author | mrg <mrg@pkgsrc.org> | 2002-11-06 11:03:28 +0000 |
---|---|---|
committer | mrg <mrg@pkgsrc.org> | 2002-11-06 11:03:28 +0000 |
commit | 65ea1f68462a973f3b534cbf4a0fc992cfbd8e5c (patch) | |
tree | 6d7b0b970606ff6b57c4b2b7b076bbd6772689b3 /www | |
parent | f8e7e6e0c9dc8ec5d6971f32cebdaebce5ccfe89 (diff) | |
download | pkgsrc-65ea1f68462a973f3b534cbf4a0fc992cfbd8e5c.tar.gz |
update to bozohttpd 20021106. changes:
o add .bz2 support
o properly escape <, > and & in error messages, partly from
Nicolas Jombart <ecu@mariejeanne.net>
o new -H flag to hide .* files in directory index mode
o fix buffer reallocation when parsing a request, to avoid
overflowing the buffer with carriage returns (\r)
o do not decode "%XY"-style cgi-bin data beyond the "?"
Diffstat (limited to 'www')
-rw-r--r-- | www/bozohttpd/Makefile | 5 | ||||
-rw-r--r-- | www/bozohttpd/distinfo | 7 | ||||
-rw-r--r-- | www/bozohttpd/patches/patch-aa | 32 |
3 files changed, 5 insertions, 39 deletions
diff --git a/www/bozohttpd/Makefile b/www/bozohttpd/Makefile index 42511f9c5f3..0ac6ec9d520 100644 --- a/www/bozohttpd/Makefile +++ b/www/bozohttpd/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.28 2002/10/26 20:01:46 wiz Exp $ +# $NetBSD: Makefile,v 1.29 2002/11/06 11:03:28 mrg Exp $ # -DISTNAME= bozohttpd-5.15 -PKGREVISION= 1 +DISTNAME= bozohttpd-20021106 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_LOCAL} EXTRACT_SUFX= .tar.bz2 diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo index 4c085f9db96..b46ef04816d 100644 --- a/www/bozohttpd/distinfo +++ b/www/bozohttpd/distinfo @@ -1,5 +1,4 @@ -$NetBSD: distinfo,v 1.21 2002/10/26 20:01:46 wiz Exp $ +$NetBSD: distinfo,v 1.22 2002/11/06 11:03:28 mrg Exp $ -SHA1 (bozohttpd-5.15.tar.bz2) = bb3d549e7d07c38af514868fa08e0bd8cbb31c82 -Size (bozohttpd-5.15.tar.bz2) = 21750 bytes -SHA1 (patch-aa) = e03b3e2ceae208298a8201e9e0aff40624828ad7 +SHA1 (bozohttpd-20021106.tar.bz2) = 36bf10dc3096d95a97ba9647d5fd023c4f83b270 +Size (bozohttpd-20021106.tar.bz2) = 23002 bytes diff --git a/www/bozohttpd/patches/patch-aa b/www/bozohttpd/patches/patch-aa deleted file mode 100644 index d6a80173221..00000000000 --- a/www/bozohttpd/patches/patch-aa +++ /dev/null @@ -1,32 +0,0 @@ -$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') |