You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2018/05/10 17:16:39 UTC
[Bug 62369] New: req:parseargs returns wrong result
https://bz.apache.org/bugzilla/show_bug.cgi?id=62369
Bug ID: 62369
Summary: req:parseargs returns wrong result
Product: Apache httpd-2
Version: 2.4-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_lua
Assignee: bugs@httpd.apache.org
Reporter: massimiliano.calandrelli@gmail.com
Target Milestone: ---
The second table returned by parseargs() should contain a map from a query
string argument name to an array filled with its values, but this array always
contains just one element, having the last value specified in the query string
for that parameter.
This is because lua_request.c uses ap_args_to_table, which in turn uses
apr_table_set instead of apr-table-add.
Not being sure if apr_args_to_table is intentionally written that way or if
it's just a bug, I patched lua_request.c.
Please note that this patch also includes another one regarding
set_output_filter().
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 62369] req:parseargs returns wrong result
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62369
--- Comment #1 from Massimiliano Calandrelli <ma...@gmail.com> ---
Created attachment 35926
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35926&action=edit
Diff file to patch lua_request.c
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org