From 318ce8d81b084b72dbdb09a7ce75939ed635dce4 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sat, 6 Apr 2013 05:34:07 +0000 Subject: [PATCH] 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 --- server/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core.c b/server/core.c index 57de161458..1a80a7e5de 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 */ -- 2.40.0