comparison src/c/urweb.c @ 1384:86d23010ea74

Ignore unknown names in query string name-value pairs; allow any side effects by Extern URLs, without signature checking
author Adam Chlipala <adam@chlipala.net>
date Thu, 06 Jan 2011 12:49:14 -0500
parents 730b3d0de1c1
children 64724ef86149
comparison
equal deleted inserted replaced
1383:0af6bd2dd149 1384:86d23010ea74
925 inps->data.entry.fields = inps+1; 925 inps->data.entry.fields = inps+1;
926 ctx->cur_container = inps; 926 ctx->cur_container = inps;
927 } else { 927 } else {
928 int n = ctx->app->input_num(name); 928 int n = ctx->app->input_num(name);
929 929
930 if (n < 0) { 930 if (n < 0)
931 if (!strcmp(name, "null")) 931 return 0;
932 return 0;
933 uw_set_error(ctx, "Bad input name %s", name);
934 return -1;
935 }
936 932
937 if (n >= ctx->app->inputs_len) { 933 if (n >= ctx->app->inputs_len) {
938 uw_set_error(ctx, "For input name %s, index %d is out of range", name, n); 934 uw_set_error(ctx, "For input name %s, index %d is out of range", name, n);
939 return -1; 935 return -1;
940 } 936 }