projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
improve validation, accept more characters in the section type
[project/uci.git]
/
history.c
diff --git
a/history.c
b/history.c
index
202d787
..
7ac8050
100644
(file)
--- a/
history.c
+++ b/
history.c
@@
-82,7
+82,7
@@
static void uci_parse_history_line(struct uci_context *ctx, struct uci_package *
goto error;
if (option && !uci_validate_name(option))
goto error;
- if (
(rename || (!option && !delete)) && !uci_validate_name(value
))
+ if (
rename && !uci_validate_str(value, (option || delete)
))
goto error;
if (rename)