From: Joe Schaefer Date: Sun, 29 Apr 2012 01:53:50 +0000 (+0000) Subject: bug here in that the hook ptr fu is busted so we need X-Git-Tag: 2.5.0-alpha~6944 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e4881eaa6fb880b972f4b226654ebde15d72477;p=thirdparty%2Fapache%2Fhttpd.git bug here in that the hook ptr fu is busted so we need to ensure only the first matching param sets ctx->param git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331862 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/apreq_parser.c b/server/apreq_parser.c index 69c0c4f035a..2949994a1eb 100644 --- a/server/apreq_parser.c +++ b/server/apreq_parser.c @@ -347,7 +347,7 @@ APREQ_DECLARE_HOOK(apreq_hook_find_param) apr_status_t s = (hook->next == NULL) ? APR_SUCCESS : apreq_hook_run(hook->next, param, bb); - if (is_final && s == APR_SUCCESS + if (is_final && s == APR_SUCCESS && ctx->param == NULL && strcasecmp(ctx->name, param->v.name) == 0) { ctx->param = param; ctx->prev->next = hook->next;