* luci/libs/core: Oops... forgot the boolean datatype in serialize_data()
This commit is contained in:
parent
35360afb6f
commit
d240fb4d8c
1 changed files with 2 additions and 0 deletions
|
@ -417,6 +417,8 @@ function serialize_data(val)
|
|||
:gsub("\n", "\\n")
|
||||
:gsub('"','\\"')
|
||||
return '"' .. val .. '"'
|
||||
elseif type(val) == "boolean" then
|
||||
return val and "true" or "false"
|
||||
elseif type(val) == "table" then
|
||||
return "{ " .. _serialize_table(val) .. " }"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue