]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Resolve 80% of the HEADER/README not recognized on Win32 bug (PR 7300).
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 18 Dec 2002 22:24:41 +0000 (22:24 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 18 Dec 2002 22:24:41 +0000 (22:24 +0000)
  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

src/modules/standard/mod_negotiation.c

index f531cd85844d94160113b7a60bd1153acecc26b5..e9d50225ba4d0e7fbc164a42e1f534f041244a60 100644 (file)
@@ -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] != '.') {