You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2013/04/06 07:34:07 UTC

svn commit: r1465190 - /httpd/httpd/trunk/server/core.c

Author: jailletc36
Date: Sat Apr  6 05:34:07 2013
New Revision: 1465190

URL: http://svn.apache.org/r1465190
Log:
Make the "default" parameter of the "ErrorDocument " option case insensitive.
PR 54419 reported by Tianyin Xu [tixu cs ucsd edu]

Modified:
    httpd/httpd/trunk/server/core.c

Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1465190&r1=1465189&r2=1465190&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Sat Apr  6 05:34:07 2013
@@ -1548,7 +1548,7 @@ static const char *set_error_document(cm
                             RESPONSE_CODES);
         }
 
-        if (strcmp(msg, "default") == 0) {
+        if (strcasecmp(msg, "default") == 0) {
             /* special case: ErrorDocument 404 default restores the
              * canned server error response
              */