diff options
author | Stas Bekman <stas@apache.org> | 2003-10-11 06:37:45 +0000 |
---|---|---|
committer | Stas Bekman <stas@apache.org> | 2003-10-11 06:37:45 +0000 |
commit | 19eb03c5a6abac6f2aeeba4ff4325478186f43d1 (patch) | |
tree | 02169058beadfb138300b123b577fef0f5b1bcfc /server/config.c | |
parent | 14ae23ded68c57abdb6d33691024ed15380f3cba (diff) | |
download | httpd-19eb03c5a6abac6f2aeeba4ff4325478186f43d1.tar.gz |
fix the config parser to support <Foo>..</Foo> containers (no
arguments in the opening tag) supported by httpd 1.3. Without
this change mod_perl 2.0's <Perl> sections are broken.
PR:
Obtained from:
Submitted by: "Philippe M. Chiasson" <gozer@cpan.org>
Reviewed by: stas
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101415 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/config.c')
-rw-r--r-- | server/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/config.c b/server/config.c index 9a8a728533..7a3ccb03e2 100644 --- a/server/config.c +++ b/server/config.c @@ -926,6 +926,9 @@ static const char *ap_build_config_sub(apr_pool_t *p, apr_pool_t *temp_pool, if (*lastc == '>') { *lastc = '\0' ; } + if (cmd_name[0] == '<' && *args == '\0') { + args = ">"; + } } newdir = apr_pcalloc(p, sizeof(ap_directive_t)); |