procd: options with default values are not parsed properly in the ubus register code

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38788 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
John Crispin 2013-11-13 10:57:16 +00:00
parent a79f9a758e
commit e41c835cee

View File

@ -229,7 +229,8 @@ uci_validate_section()
shift; shift; shift
while [ -n "$1" ]; do
json_add_string "${1%:*}" "${1#*:}"
local tmp=${1#*:}
json_add_string "${1%%:*}" "${tmp%%:*}"
shift
done