Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-5] src/libexec/httpd



Module Name:    src
Committed By:   snj
Date:           Sun Feb  8 20:30:20 UTC 2009

Modified Files:
        src/libexec/httpd [netbsd-5]: bozohttpd.c bozohttpd.h cgi-bozo.c
            dir-index-bozo.c tilde-luzah-bozo.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.7.8.1 src/libexec/httpd/bozohttpd.c
cvs rdiff -r1.5 -r1.5.8.1 src/libexec/httpd/bozohttpd.h
cvs rdiff -r1.7.8.1 -r1.7.8.2 src/libexec/httpd/cgi-bozo.c
cvs rdiff -r1.4 -r1.4.8.1 src/libexec/httpd/dir-index-bozo.c
cvs rdiff -r1.3 -r1.3.8.1 src/libexec/httpd/tilde-luzah-bozo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index