Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-webthings-collection
> mod_form.c.preserve_args.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mod_form.c.preserve_args.patch of Package apache2-webthings-collection (Revision 4)
Currently displaying revision
4
,
show latest
--- mod_form.c.old 2007-03-13 15:05:13.872945000 +0100 +++ mod_form.c 2007-03-13 15:06:26.378367000 +0100 @@ -61,6 +61,7 @@ char* pair ; char* last = NULL ; char* eq ; + char* a ; if ( ! ctx ) { ctx = apr_pcalloc(r->pool, sizeof(form_ctx)) ; ctx->delim = delim[0]; @@ -69,7 +70,8 @@ if ( ! ctx->vars ) { ctx->vars = apr_table_make(r->pool, 10) ; } - for ( pair = apr_strtok(args, delim, &last) ; pair ; + a = apr_pstrdup(r->pool, args); + for ( pair = apr_strtok(a, delim, &last) ; pair ; pair = apr_strtok(NULL, delim, &last) ) { for (eq = pair ; *eq ; ++eq) if ( *eq == '+' )