From 206330cea1c32c1ffd94f983dd95b38c688098dd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 11 Dec 2015 20:30:39 +0100 Subject: util.datamanager: Make sure only strings are passed as data to append() --- util/datamanager.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util/datamanager.lua') 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; -- cgit v1.2.3