From 40bf9c613f98532041534364ec47b159145101a5 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Mon, 12 Feb 2024 17:27:03 +0100 Subject: [PATCH] FIXME. --- .../mod_random_vcard_peertubelivechat.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/prosody-modules/mod_random_vcard_peertubelivechat/mod_random_vcard_peertubelivechat.lua b/prosody-modules/mod_random_vcard_peertubelivechat/mod_random_vcard_peertubelivechat.lua index 8f420072..36718851 100644 --- a/prosody-modules/mod_random_vcard_peertubelivechat/mod_random_vcard_peertubelivechat.lua +++ b/prosody-modules/mod_random_vcard_peertubelivechat/mod_random_vcard_peertubelivechat.lua @@ -10,6 +10,7 @@ local avatars_files = assert(module:get_option_array("peertubelivechat_random_vc local avatars = {}; local function load_avatar(filename) local file = assert(io.open(path.join(avatars_dir, filename), "r")); + -- FIXME: check filetype, to only allow jpg or png. (for the day we would allow users to add custom avatars sets) local filetype = filename.sub(filename, -3); -- jpg or png local result = { type = 'image/' .. filetype,