[Klone-users] Problem request_get_postarg
Mickael Auger
mickael.auger at gmail.com
Thu May 15 03:50:54 EDT 2008
Hi Stefano,
>the backtrace seems strange to me; there should not be any way to set a
variable without setting its name so the u_string_c pointed by the backtrace
should never be executed (the >for loop around the offending line in
vars.c:338 should guarantee such execution flow).
I think that I identify a bug in three functions from
"src/libpage/request.c" :
- request_parse_query_args_from() : line 831
- request_cb_add_post_var() : line 854
- request_cb_add_get_var() : line 872
I think the "v" variable could be uninitialized and the calls of "dbg_if()"
functions on these three lines should be "dbg_err_if()" and "v" variable
should be initialized to NULL.
>is the "myvar" variable set? how did you set "myvar" (using a form, with
vars_add(), etc.)?
I use a simple form with post method and the variable called "myvar" is set
for kloned when submit button on the form is pressed.
Thanks.
--
Mickaël AUGER
mickael.auger at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080515/0a71b4f3/attachment.htm
More information about the klone-users
mailing list