summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-05-22 13:32:29 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-05-22 13:32:29 -0400
commit34ef5635f48d46a84e542db3f9a77c189da7e60d (patch)
tree7a660dff7e2a945df875fde9d7ea4a549dc40d88 /src
parent73d904d65ee06858458f20ee553b5cc0ffa6830a (diff)
Prevent early clearing of context post data
Diffstat (limited to 'src')
-rw-r--r--src/c/urweb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 1ca45836..d440ed47 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -600,7 +600,6 @@ void uw_reset_keep_error_message(uw_context ctx) {
ctx->cur_container = NULL;
ctx->used_transactionals = 0;
ctx->script_header = "";
- ctx->hasPostBody = 0;
ctx->queryString = NULL;
}
@@ -614,8 +613,7 @@ void uw_reset(uw_context ctx) {
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) {