From: William A. Rowe Jr Date: Wed, 18 Dec 2002 22:24:41 +0000 (+0000) Subject: Resolve 80% of the HEADER/README not recognized on Win32 bug (PR 7300). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2a247d8e98f69fcccb18c01aa0953d10968872a;p=thirdparty%2Fapache%2Fhttpd.git Resolve 80% of the HEADER/README not recognized on Win32 bug (PR 7300). Since Apache 1.3 does NOT normalize file names, but instead always lower cases the names, HEADER.txt or HEADER.html would never, ever be noted as a match. This is different from Apache 2.0, which can deal with the proper names and match only HEADER.* or header.* files based on the origin filename. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@98031 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/modules/standard/mod_negotiation.c b/src/modules/standard/mod_negotiation.c index f531cd85844..e9d50225ba4 100644 --- a/src/modules/standard/mod_negotiation.c +++ b/src/modules/standard/mod_negotiation.c @@ -926,7 +926,11 @@ static int read_types_multi(negotiation_state *neg) request_rec *sub_req; /* Do we have a match? */ +#ifdef CASE_BLIND_FILESYSTEM + if (strncasecmp(dir_entry->d_name, filp, prefix_len)) { +#else if (strncmp(dir_entry->d_name, filp, prefix_len)) { +#endif continue; } if (dir_entry->d_name[prefix_len] != '.') {