sanitize json_get_type function
Signed-off-by: Luka Perkov <luka@openwrt.org>
This commit is contained in:
parent
17f4e41ecb
commit
f1735cd94e
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ json_get_type() {
|
|||
local cur
|
||||
|
||||
_json_get_var cur JSON_CUR
|
||||
local var="${JSON_PREFIX}TYPE_${cur}_$2"
|
||||
local var="${JSON_PREFIX}TYPE_${cur}_${2//[^a-zA-Z0-9_]/_}"
|
||||
eval "export -- \"$dest=\${$var}\"; [ -n \"\${$var+x}\" ]"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue