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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]