From: Ryan Bloom Date: Fri, 2 Mar 2001 05:50:05 +0000 (+0000) Subject: Fix mod_info, so that and directives are X-Git-Tag: 2.0.14~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f7dd462eaa130e8fd6888f39c4fe4f5578a1237;p=apache 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 --- 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",