allow more types of characters for uci package names
[project/uci.git] / util.c
diff --git a/util.c b/util.c
index a85ec9b6b6fb8bf061f0a594a1199a73fa8b0e4e..8542359da59fdb29234d47916540e6f4043606b6 100644 (file)
--- 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, ".");