From d4016956295fdb1836dd9c5134193609b01280f3 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 13 Dec 2010 19:27:14 +0500 Subject: mod_storage_sql: Fixed the deserialization of string-typed values. --- plugins/mod_storage_sql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_storage_sql.lua') diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 593acd31..1e928471 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -74,7 +74,7 @@ local function serialize(value) return nil, "Unhandled value type: "..t; end local function deserialize(t, value) - if t == "string" then return t; + if t == "string" then return value; elseif t == "boolean" then if value == "true" then return true; elseif value == "false" then return false; end -- cgit v1.2.3