httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1331862 - /httpd/httpd/trunk/server/apreq_parser.c
Date Sun, 29 Apr 2012 01:53:51 GMT
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;



Mime
View raw message