Mercurial > urweb
changeset 2054:4ad46302f659
Don't use uw_malloc() or equivalent in generating error messages while parsing HTTP request
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 15 Aug 2014 18:25:56 -0400 |
parents | 229a299d739d |
children | 7c2229aa22fc |
files | .hgignore src/c/urweb.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore Fri Aug 15 07:11:31 2014 +0000 +++ b/.hgignore Fri Aug 15 18:25:56 2014 -0400 @@ -66,6 +66,8 @@ ltmain.sh missing +tests/*.db + syntax: regexp ^Makefile$
--- a/src/c/urweb.c Fri Aug 15 07:11:31 2014 +0000 +++ b/src/c/urweb.c Fri Aug 15 18:25:56 2014 -0400 @@ -1043,12 +1043,12 @@ 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; }