
joes at apache
Apr 28, 2012, 6:53 PM
Post #1 of 1
(35 views)
Permalink
|
|
svn commit: r1331862 - /httpd/httpd/trunk/server/apreq_parser.c
|
|
Author: joes Date: Sun Apr 29 01:53:50 2012 New Revision: 1331862 URL: http://svn.apache.org/viewvc?rev=1331862&view=rev Log: bug here in that the hook ptr fu is busted so we need to ensure only the first matching param sets ctx->param Modified: httpd/httpd/trunk/server/apreq_parser.c Modified: httpd/httpd/trunk/server/apreq_parser.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/apreq_parser.c?rev=1331862&r1=1331861&r2=1331862&view=diff ============================================================================== --- httpd/httpd/trunk/server/apreq_parser.c (original) +++ httpd/httpd/trunk/server/apreq_parser.c Sun Apr 29 01:53:50 2012 @@ -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;
|