From d240fb4d8c7d027c7a9d5b47662ea7ccc9394801 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 26 Jul 2008 00:08:43 +0000 Subject: [PATCH] * luci/libs/core: Oops... forgot the boolean datatype in serialize_data() --- libs/core/luasrc/util.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.25.1