lowercase filenames support, fixed #543
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1007 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.11
parent
1982fda295
commit
755765da9d
|
@ -166,7 +166,9 @@ PHYSICALPATH_FUNC(mod_alias_physical_handler) {
|
|||
if (alias_len > uri_len) continue;
|
||||
if (ds->key->used == 0) continue;
|
||||
|
||||
if (0 == strncmp(uri_ptr, ds->key->ptr, alias_len)) {
|
||||
if (0 == (con->conf.force_lowercase_filenames ?
|
||||
strncastcmp(uri_ptr, ds->key->ptr, alias_len) :
|
||||
strncmp(uri_ptr, ds->key->ptr, alias_len))) {
|
||||
/* matched */
|
||||
|
||||
buffer_copy_string_buffer(con->physical.basedir, ds->value);
|
||||
|
|
Loading…
Reference in New Issue