mod_storage_sql: Fixed the deserialization of string-typed values.
authorWaqas Hussain <waqas20@gmail.com>
Mon, 13 Dec 2010 14:27:14 +0000 (19:27 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Mon, 13 Dec 2010 14:27:14 +0000 (19:27 +0500)
plugins/mod_storage_sql.lua

index 593acd3151813f3d05d12a51808ccf3f3a731202..1e9284714cde1c9848304b71d4fac3d326368038 100644 (file)
@@ -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