[Klone-users] Problem request_get_postarg

Stefano Barbato barbato at koanlogic.com
Thu May 15 13:22:26 EDT 2008


Hi Mickael,

thanks for your report. could you try to change from dbg_if() to  
dbg_err_if() both in request_cb_add_post_var() and  
request_cb_add_get_var() please? That is indeed a bug. Let me know if  
that solves your problems.

You can ignore request_parse_query_args_from() function, nobody uses  
it :) it has been removed from the source base.

bye,
s


On 15/mag/08, at 09:50, Mickael Auger wrote:

> 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  
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users





More information about the klone-users mailing list