From: Eric Covener Date: Wed, 7 Jun 2017 00:52:10 +0000 (+0000) Subject: allow quoted paths in X-Git-Tag: 2.5.0-alpha~380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5071e48bfbf73d694e7493e4bd506fef6c51782;p=thirdparty%2Fapache%2Fhttpd.git allow quoted paths in The boilerplate code for config sections conflicts with TAKE1 because of the trailing stuff to terminate the opening tag. Change from TAKE1 to RAW_ARGS and call ap_getword_conf() directly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1797844 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 20fc656c5e1..65fdf0beee0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) Allow the argument to , , , , + and to be quoted. This is primarily for the benefit of + . [Eric Covener] + *) Introduce request taint checking framework to prevent privilege hijacking through .htaccess. [Nick Kew] diff --git a/server/core.c b/server/core.c index 4bdcb8fdedb..cf2c28f5f03 100644 --- a/server/core.c +++ b/server/core.c @@ -2779,6 +2779,7 @@ static const char *start_cond_section(cmd_parms *cmd, void *mconfig, const char const char *endp = ap_strrchr_c(arg, '>'); int result, not = (arg[0] == '!'); test_cond_section_fn testfn = (test_cond_section_fn)cmd->info; + const char *arg1; if (endp == NULL) { return unclosed_directive(cmd); @@ -2790,11 +2791,13 @@ static const char *start_cond_section(cmd_parms *cmd, void *mconfig, const char arg++; } - if (!arg[0]) { + arg1 = ap_getword_conf(cmd->temp_pool, &arg); + + if (!arg1[0]) { return missing_container_arg(cmd); } - result = testfn(cmd, arg); + result = testfn(cmd, arg1); if ((!not && result) || (not && !result)) { ap_directive_t *parent = NULL; @@ -4457,19 +4460,19 @@ AP_INIT_RAW_ARGS("