From f5aba03766fb551cf148db74273fa21505d99bdb Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 11 May 2001 23:33:46 +0000 Subject: [PATCH] Cleanup the reporting of incorrect end tags for container directives. PR: 7617 Submitted by: Barrie Slaymaker git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89091 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ server/config.c | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES b/CHANGES index fd31ee2d11..85112b5f05 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.18-dev + *) Clean up the reporting of incorrect closing container tags. + [Barrie Slaymaker ] + *) Simplify the configure process by moving all libtool stuff to APR and moving hints.m4 inline. [Roy Fielding] diff --git a/server/config.c b/server/config.c index 7af7b3f2d9..73b78def95 100644 --- a/server/config.c +++ b/server/config.c @@ -809,6 +809,13 @@ static const char * ap_build_config_sub(apr_pool_t *p, apr_pool_t *temp_pool, return NULL; } + if ( cmd_name[1] != '/' ) { + char *lastc = cmd_name + strlen(cmd_name) - 1; + if (*lastc == '>') { + *lastc = '\0' ; + } + } + newdir = apr_pcalloc(p, sizeof(ap_directive_t)); newdir->filename = parms->config_file->name; newdir->line_num = parms->config_file->line_number; -- 2.50.1