ok, rel_path is not updated by mod_indexfile or the pathinfo handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@924 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
415e215746
commit
ea57fa1747
|
@ -3390,7 +3390,7 @@ static handler_t fcgi_check_extension(server *srv, connection *con, void *p_d, i
|
|||
/* Possibly, we processed already this request */
|
||||
if (con->file_started == 1) return HANDLER_GO_ON;
|
||||
|
||||
fn = uri_path_handler ? con->uri.path : con->physical.rel_path;
|
||||
fn = uri_path_handler ? con->uri.path : con->physical.path;
|
||||
|
||||
if (fn->used == 0) {
|
||||
return HANDLER_ERROR;
|
||||
|
|
|
@ -2677,7 +2677,7 @@ static handler_t scgi_check_extension(server *srv, connection *con, void *p_d, i
|
|||
/* Possibly, we processed already this request */
|
||||
if (con->file_started == 1) return HANDLER_GO_ON;
|
||||
|
||||
fn = uri_path_handler ? con->uri.path : con->physical.rel_path;
|
||||
fn = uri_path_handler ? con->uri.path : con->physical.path;
|
||||
|
||||
if (fn->used == 0) {
|
||||
return HANDLER_ERROR;
|
||||
|
|
|
@ -372,17 +372,11 @@ URIHANDLER_FUNC(mod_staticfile_subrequest) {
|
|||
|
||||
/* ignore certain extensions */
|
||||
for (k = 0; k < p->conf.exclude_ext->used; k++) {
|
||||
int ct_len;
|
||||
|
||||
ds = (data_string *)p->conf.exclude_ext->data[k];
|
||||
|
||||
ct_len = ds->value->used - 1;
|
||||
|
||||
if (ct_len > s_len) continue;
|
||||
|
||||
if (ds->value->used == 0) continue;
|
||||
|
||||
if (0 == strncmp(con->physical.rel_path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) {
|
||||
|
||||
if (buffer_is_equal_right_len(con->physical.path, ds->value, ds->value->used - 1)) {
|
||||
return HANDLER_GO_ON;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue