This patch is recommended by the MirrorBrain folks here: http://mirrorbrain.org/docs/installation/source/ --rworkman Tue Mar 13 15:16:30 CET 2007 - poeml@cmdline.net preserve r->args (apr_strtok is destructive in this regard). Makes mod_autoindex work again in conjunction with directories where FormGET is enabled. --- 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 == '+' )