summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-08-15 18:25:56 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2014-08-15 18:25:56 -0400
commit60fbd47e8c5695e3c418f96bab81cb0321359f30 (patch)
tree418eae34180c7cfe3498e43da20c9ec2599fdcb0
parent1ef54c4722223a52f0b57bf0407cff39ebeb9f62 (diff)
Don't use uw_malloc() or equivalent in generating error messages while parsing HTTP request
-rw-r--r--.hgignore2
-rw-r--r--src/c/urweb.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/.hgignore b/.hgignore
index 9a411ff9..4139717b 100644
--- a/.hgignore
+++ b/.hgignore
@@ -66,6 +66,8 @@ install-sh
ltmain.sh
missing
+tests/*.db
+
syntax: regexp
^Makefile$
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 1799d01e..43c73661 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -1043,12 +1043,12 @@ int uw_set_file_input(uw_context ctx, const char *name, uw_Basis_file f) {
int n = ctx->app->input_num(name);
if (n < 0) {
- uw_set_error(ctx, "Bad file input name %s", uw_Basis_htmlifyString(ctx, name));
+ uw_set_error(ctx, "Bad file input name");
return -1;
}
if (n >= ctx->app->inputs_len) {
- uw_set_error(ctx, "For file input name %s, index %d is out of range", uw_Basis_htmlifyString(ctx, name), n);
+ uw_set_error(ctx, "For file input name, index %d is out of range", n);
return -1;
}