Make the "default" parameter of the "ErrorDocument " option case insensitive.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 6 Apr 2013 05:34:07 +0000 (05:34 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 6 Apr 2013 05:34:07 +0000 (05:34 +0000)
PR 54419 reported by Tianyin Xu [tixu cs ucsd edu]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1465190 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 57de161458d8bf3b5a7398f39e8559051fb3a8f6..1a80a7e5de44683aba05099c37057153e485c5f5 100644 (file)
@@ -1548,7 +1548,7 @@ static const char *set_error_document(cmd_parms *cmd, void *conf_,
                             RESPONSE_CODES);
         }
 
-        if (strcmp(msg, "default") == 0) {
+        if (strcasecmp(msg, "default") == 0) {
             /* special case: ErrorDocument 404 default restores the
              * canned server error response
              */