From 4f7dd462eaa130e8fd6888f39c4fe4f5578a1237 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 2 Mar 2001 05:50:05 +0000 Subject: [PATCH] Fix mod_info, so that and directives are not displayed twice when displaying the current configuration. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88416 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ modules/generators/mod_info.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 357fd78fd2..db0ac7be75 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 2.0.14-dev + *) Fix mod_info, so that and directives are + not displayed twice when displaying the current configuration. + [Ryan Morgan ] + *) Add config directives to override DEFAULT_ERROR_MSG and DEFAULT_TIME_FORMAT. This was sent in as PR 6193. [Dan Rench ] diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c index f5287daa6e..f01afbbfec 100644 --- a/modules/generators/mod_info.c +++ b/modules/generators/mod_info.c @@ -192,7 +192,8 @@ static void mod_info_module_cmds(request_rec * r, const command_rec * cmds, while (tmptree != NULL) { cmd = cmds; while (cmd->name) { - if (!strcasecmp(cmd->name, tmptree->directive)) { + if ((cmd->name[0] != '<') && + (strcasecmp(cmd->name, tmptree->directive) == 0)) { if (nest > block_start) { block_start++; apr_snprintf(htmlstring, sizeof(htmlstring), "%s %s", -- 2.40.0