Up to [cvs.NetBSD.org] / src / libexec / httpd
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-5-0-1-RELEASE
Revision 1.4.8.1 / (download) - annotate - [select for diffs], Sun Feb 8 20:30:20 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-2,
netbsd-5-1
Changes since 1.4: +3 -3
lines
Diff to previous 1.4 (colored)
Pull up following revision(s) (requested by tls in ticket #428): libexec/httpd/bozohttpd.c: revision 1.9 libexec/httpd/bozohttpd.h: revision 1.6 libexec/httpd/cgi-bozo.c: revision 1.9 libexec/httpd/dir-index-bozo.c: revision 1.5 libexec/httpd/tilde-luzah-bozo.c: revision 1.4 From Sergey Katsev at Coyote Point: fix bugs in request transformation and CGI handling, including bin/40355 . There are two main changes here: 1) call process_cgi() after transform_request(), not before. Now it is possible to have a default cgi handler catch a request for a path that was produced by transformation, e.g. by index generation -- so now the index can be "generated" by a CGI if that is what the user desires. 2) More clearly distinguish "file" from "query" portions of the request URL, so we do not feed ?-suffixed "arguments" to plain files, fail to match filename extensions due to ?-suffixes, etc. After this change, there are only two cases which use the "query" portion of the request (the portion after the ?): a) A redirect issued by HTTPD will redirect to the new file, but with the same query string. b) process_cgi() will, of course continue to use the query string.