projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
some more input validation
[project/uci.git]
/
file.c
diff --git
a/file.c
b/file.c
index
c513c87
..
19c6b07
100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-481,6
+481,9
@@
static char **uci_list_config_files(struct uci_context *ctx)
if (!p)
continue;
+ if (!uci_validate_name(p))
+ continue;
+
configs[i] = buf;
strcpy(buf, p);
buf += strlen(buf) + 1;