From e473c28bd9a4902e2b8e44576de0f63570b21c65 Mon Sep 17 00:00:00 2001 From: Joe Schaefer Date: Sun, 29 Apr 2012 01:53:50 +0000 Subject: [PATCH] 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 --- server/apreq_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3