Mercurial > urweb
diff src/c/urweb.c @ 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 | ced78ef1c82f |
children | a9159911c3ba |
line wrap: on
line diff
--- 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; }