diff options
author | Kim Alvefur <zash@zash.se> | 2015-12-11 20:30:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-12-11 20:30:39 +0100 |
commit | 206330cea1c32c1ffd94f983dd95b38c688098dd (patch) | |
tree | 1e56638a999cc5b1d937c617fded4d13880ad02e | |
parent | 1510dd113d86a62405cb61b370fbd716450f9d58 (diff) | |
download | prosody-206330cea1c32c1ffd94f983dd95b38c688098dd.tar.gz prosody-206330cea1c32c1ffd94f983dd95b38c688098dd.zip |
util.datamanager: Make sure only strings are passed as data to append()
-rw-r--r-- | util/datamanager.lua | 1 |
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; |