projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0519356
)
mod_storage_sql: Fixed the deserialization of string-typed values.
author
Waqas Hussain
<waqas20@gmail.com>
Mon, 13 Dec 2010 14:27:14 +0000
(19:27 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Mon, 13 Dec 2010 14:27:14 +0000
(19:27 +0500)
plugins/mod_storage_sql.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_storage_sql.lua
b/plugins/mod_storage_sql.lua
index 593acd3151813f3d05d12a51808ccf3f3a731202..1e9284714cde1c9848304b71d4fac3d326368038 100644
(file)
--- 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