Source-Changes archive

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

CVS commit: src/libexec/httpd



Module Name:    src
Committed By:   tls
Date:           Wed Feb  4 22:55:58 UTC 2009

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

Log Message:
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.8 -r1.9 src/libexec/httpd/bozohttpd.c \
    src/libexec/httpd/cgi-bozo.c
cvs rdiff -r1.5 -r1.6 src/libexec/httpd/bozohttpd.h
cvs rdiff -r1.4 -r1.5 src/libexec/httpd/dir-index-bozo.c
cvs rdiff -r1.3 -r1.4 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