From: Jo-Philipp Wich Date: Sat, 26 Jul 2008 00:08:43 +0000 (+0000) Subject: * luci/libs/core: Oops... forgot the boolean datatype in serialize_data() X-Git-Tag: 0.8.0~571 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=d240fb4d8c7d027c7a9d5b47662ea7ccc9394801 * luci/libs/core: Oops... forgot the boolean datatype in serialize_data() --- diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index 3f65a80fb..2686445de 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -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