aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-08 22:42:51 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-08 22:42:51 +0100
commitd90bbc62934a3c2580242baaf9978094e7064277 (patch)
treedf76cf6ef4cbc4761d17af02adffe22773d7fdb2 /util
parent584b40a6825647ae2388ba47247689e8994c2129 (diff)
downloadprosody-d90bbc62934a3c2580242baaf9978094e7064277.tar.gz
prosody-d90bbc62934a3c2580242baaf9978094e7064277.zip
Fix for saving tables with non-string keys
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index be63673e..71c0fe86 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -43,7 +43,7 @@ local function simplesave (f, o)
elseif type(o) == "table" then
f:write("{\n")
for k,v in pairs(o) do
- f:write(" [", format("%q", k), "] = ")
+ f:write(" [", basicSerialize(k), "] = ")
simplesave(f, v)
f:write(",\n")
end