Browse Source

use physical.rel_path instead url.path to handle case-insensitive file-systems in the right way

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@923 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Jan Kneschke 16 years ago
parent
commit
415e215746
  1. 4
      src/mod_fastcgi.c
  2. 2
      src/mod_scgi.c
  3. 2
      src/mod_staticfile.c

4
src/mod_fastcgi.c

@ -3389,8 +3389,8 @@ 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 = con->uri.path;
fn = uri_path_handler ? con->uri.path : con->physical.rel_path;
if (fn->used == 0) {
return HANDLER_ERROR;

2
src/mod_scgi.c

@ -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 = con->uri.path;
fn = uri_path_handler ? con->uri.path : con->physical.rel_path;
if (fn->used == 0) {
return HANDLER_ERROR;

2
src/mod_staticfile.c

@ -382,7 +382,7 @@ URIHANDLER_FUNC(mod_staticfile_subrequest) {
if (ds->value->used == 0) continue;
if (0 == strncmp(con->uri.path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) {
if (0 == strncmp(con->physical.rel_path->ptr + s_len - ct_len, ds->value->ptr, ct_len)) {
return HANDLER_GO_ON;
}
}

Loading…
Cancel
Save