diff --git a/cdist/conf/type/__uci_section/manifest b/cdist/conf/type/__uci_section/manifest index e16277ba..1a59b970 100755 --- a/cdist/conf/type/__uci_section/manifest +++ b/cdist/conf/type/__uci_section/manifest @@ -33,6 +33,32 @@ append_values() { "$@" &2 + exit 1 + } + uci_validate_name "${__object_id#*.}" || { + printf 'Invalid section name: %s\n' "${__object_id#*.}" >&2 + exit 1 + } + ;; + (*) + uci_validate_name "${__object_id:?}" || { + printf 'Invalid section name: %s\n' "${__object_id:?}" >&2 + exit 1 + } + ;; +esac + section=$(cat "${__object:?}/explorer/match") state_should=$(cat "${__object:?}/parameter/state")