diff options
author | 2014-08-15 18:25:56 -0400 | |
---|---|---|
committer | 2014-08-15 18:25:56 -0400 | |
commit | 7640522fbd05667a5ebb2b2cbbabdc2c8bce5248 (patch) | |
tree | 418eae34180c7cfe3498e43da20c9ec2599fdcb0 | |
parent | 6c3c000ee821e37b0232afbb8c5733c573892ad2 (diff) |
Don't use uw_malloc() or equivalent in generating error messages while parsing HTTP request
-rw-r--r-- | .hgignore | 2 | ||||
-rw-r--r-- | src/c/urweb.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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; } |