From: Christophe Jaillet Date: Sat, 6 Apr 2013 05:34:07 +0000 (+0000) Subject: Make the "default" parameter of the "ErrorDocument " option case insensitive. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cf3e9166cee88d2887723e4e6baeed241fa602b;p=thirdparty%2Fapache%2Fhttpd.git Make the "default" parameter of the "ErrorDocument " option case insensitive. 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 --- diff --git a/server/core.c b/server/core.c index 57de161458d..1a80a7e5de4 100644 --- a/server/core.c +++ b/server/core.c @@ -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 */