aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-12-11 20:30:39 +0100
committerKim Alvefur <zash@zash.se>2015-12-11 20:30:39 +0100
commit206330cea1c32c1ffd94f983dd95b38c688098dd (patch)
tree1e56638a999cc5b1d937c617fded4d13880ad02e /util/datamanager.lua
parent1510dd113d86a62405cb61b370fbd716450f9d58 (diff)
downloadprosody-206330cea1c32c1ffd94f983dd95b38c688098dd.tar.gz
prosody-206330cea1c32c1ffd94f983dd95b38c688098dd.zip
util.datamanager: Make sure only strings are passed as data to append()
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r--util/datamanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 510c0161..e57d5fdc 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -211,6 +211,7 @@ end
-- Append a blob of data to a file
local function append(username, host, datastore, ext, data)
+ if type(data) ~= "string" then return; end
local filename = getpath(username, host, datastore, ext, true);
local ok;