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

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

SVN-Revision: 38788
This commit is contained in:
John Crispin 2013-11-13 10:57:16 +00:00
parent 1f93857092
commit 50db95e2f0

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