X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=history.c;h=dcf94e02000623c77d1649b5068487e339e6569b;hp=052636158ada9cf8d7921553cabab5b2bdef7178;hb=cf66ea9067d3e9ffe77f42723c5b2f9d38b05ecf;hpb=65e2c3559b451315935f9483c5f4e59d63441e54;ds=sidebyside diff --git a/history.c b/history.c index 0526361..dcf94e0 100644 --- 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 || !delete) && !uci_validate_name(value)) + if ((rename || (!option && !delete)) && !uci_validate_name(value)) goto error; if (rename)