httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54419] New: Case sensitive option in "ErrorDocument"
Date Tue, 15 Jan 2013 05:09:48 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54419

            Bug ID: 54419
           Summary: Case sensitive option in "ErrorDocument"
           Product: Apache httpd-2
           Version: 2.4.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: tixu@cs.ucsd.edu
    Classification: Unclassified

Hi, 

The ErrorDocument has a case sensitive option "default", which conflicts with
the case insensitivity of Apache's configuration design. According to my
understanding, httpd champions case insensitivity for both configuration
directive and configuration options.

The fix is straightforward as follows:

--- server/core.c    2012-11-28 12:57:48.599129124 -0800
+++ server/core.c    2013-01-14 21:02:01.601358837 -0800
@@ -1497,7 +1497,7 @@
                             RESPONSE_CODES);
         }

-        if (strcmp(msg, "default") == 0) {
+        if (strcasecmp(msg, "default") == 0) {
             /* special case: ErrorDocument 404 default restores the
              * canned server error response
              */

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message