# HG changeset patch # User Adam Chlipala # Date 1306085549 14400 # Node ID fb88d64abec8128d34ee0f949abab222ef716a47 # Parent 4f4f104259fb8eeb07a63686eb8a95666a794298 Prevent early clearing of context post data diff -r 4f4f104259fb -r fb88d64abec8 src/c/urweb.c --- a/src/c/urweb.c Tue May 17 16:02:19 2011 -0400 +++ b/src/c/urweb.c Sun May 22 13:32:29 2011 -0400 @@ -600,7 +600,6 @@ ctx->cur_container = NULL; ctx->used_transactionals = 0; ctx->script_header = ""; - ctx->hasPostBody = 0; ctx->queryString = NULL; } @@ -614,8 +613,7 @@ if (ctx->app) memset(ctx->inputs, 0, ctx->app->inputs_len * sizeof(input)); memset(ctx->subinputs, 0, ctx->n_subinputs * sizeof(input)); - ctx->used_subinputs = 0; - ctx->isPost = 0; + ctx->used_subinputs = ctx->hasPostBody = ctx->isPost = 0; } failure_kind uw_begin_init(uw_context ctx) {