X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=file.c;h=5ec00328de0825e0ea11a0a4a8230d7eec392a6b;hp=13fdd3bfb9d3cd4930cfb20f679582350a1dbd1e;hb=364e26378c4a5a37962a9e9d52c76b1531e7404f;hpb=51b60a322aff3fd1045fb6c9eb289ade2de54e71;ds=sidebyside diff --git a/file.c b/file.c index 13fdd3b..5ec0032 100644 --- a/file.c +++ b/file.c @@ -309,7 +309,7 @@ int uci_import(struct uci_context *ctx, FILE *stream, const char *name, struct u * NB: the config file can still override the package name */ if (name) { - UCI_ASSERT(ctx, uci_validate_name(name)); + UCI_ASSERT(ctx, uci_validate_str(name, false)); pctx->name = name; } @@ -350,7 +350,7 @@ static char *uci_config_path(struct uci_context *ctx, const char *name) { char *filename; - UCI_ASSERT(ctx, uci_validate_name(name)); + UCI_ASSERT(ctx, uci_validate_str(name, false)); filename = uci_malloc(ctx, strlen(name) + strlen(ctx->confdir) + 2); sprintf(filename, "%s/%s", ctx->confdir, name);