json_script: allow non-string types in command arguments
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
3d45c47752
commit
10429bccd0
1 changed files with 2 additions and 2 deletions
|
@ -484,8 +484,8 @@ static int cmd_process_strings(struct json_call *call, struct blob_attr *attr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING) {
|
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING) {
|
||||||
ctx->handle_error(ctx, "Invalid argument in command", attr);
|
blobmsg_add_blob(&ctx->buf, cur);
|
||||||
return -1;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = cmd_add_string(call, blobmsg_data(cur));
|
ret = cmd_add_string(call, blobmsg_data(cur));
|
||||||
|
|
Loading…
Reference in a new issue