diff options
author | wiz <wiz> | 2002-10-26 20:01:46 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-10-26 20:01:46 +0000 |
commit | 7513e2306e37dcb84552d0a15ebf5b420bcfdd24 (patch) | |
tree | 1965df4970157922fffa0b8cbdbe4e5a956fc40b /www/bozohttpd/patches | |
parent | d5297bd97323e407d1bc029b0fb11716a9e93f98 (diff) | |
download | pkgsrc-7513e2306e37dcb84552d0a15ebf5b420bcfdd24.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/patches')
-rw-r--r-- | www/bozohttpd/patches/patch-aa | 32 |
1 files changed, 32 insertions, 0 deletions
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') |