Software /
code /
prosody
Changeset
3863:2a9475dce7ff
mod_storage_sql: Fixed the deserialization of string-typed values.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 13 Dec 2010 19:27:14 +0500 |
parents | 3862:ec8bcd766693 |
children | 3864:345f1d5b7022 |
files | plugins/mod_storage_sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Sun Dec 12 17:18:16 2010 +0500 +++ b/plugins/mod_storage_sql.lua Mon Dec 13 19:27:14 2010 +0500 @@ -74,7 +74,7 @@ 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