X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=util.c;h=8542359da59fdb29234d47916540e6f4043606b6;hp=a85ec9b6b6fb8bf061f0a594a1199a73fa8b0e4e;hb=6c020def580232b9188232f044184c575a716cda;hpb=3232be5d642dd8dc4e718a3c534a8e413ce0f49b;ds=sidebyside diff --git a/util.c b/util.c index a85ec9b..8542359 100644 --- a/util.c +++ b/util.c @@ -120,7 +120,7 @@ int uci_parse_tuple(struct uci_context *ctx, char *str, char **package, char **s } *package = strsep(&str, "."); - if (!*package || !uci_validate_name(*package)) + if (!*package || !uci_validate_str(*package, false)) goto error; *section = strsep(&str, ".");