Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Fixes errors in prosody about string formatting and nil values. (#10037)
Дамян Минковba6247daafe9
diff --git a/resources/prosody-plugins/mod_polls.lua b/resources/prosody-plugins/mod_polls.luaindex da58be63a2..56d4b5bec4 100644--- a/resources/prosody-plugins/mod_polls.lua+++ b/resources/prosody-plugins/mod_polls.lua@@ -22,7 +22,7 @@ local function get_poll_message(stanza)return nil;endlocal data = json.decode(json_data);- if data.type ~= "new-poll" and data.type ~= "answer-poll" then+ if not data or (data.type ~= "new-poll" and data.type ~= "answer-poll") thenreturn nil;endreturn data;@@ -42,7 +42,7 @@ endmodule:hook("muc-room-created", function(event)local room = event.room;if is_healthcheck_room(room.jid) then return end- module:log("debug", "setting up polls in room "..tostring(room));+ module:log("debug", "setting up polls in room %s", room.jid);room.polls = {by_id = {};order = {};diff --git a/resources/prosody-plugins/token/util.lib.lua b/resources/prosody-plugins/token/util.lib.luaindex a9cc06a158..6f1033c13c 100644--- a/resources/prosody-plugins/token/util.lib.lua+++ b/resources/prosody-plugins/token/util.lib.lua@@ -128,9 +128,9 @@ function Util:get_public_key(keyId)local content = self.cache:get(keyId);if content == nil then-- If the key is not found in the cache.- module:log("debug", "Cache miss for key: "..keyId);+ module:log("debug", "Cache miss for key: %s", keyId);local keyurl = path.join(self.asapKeyServer, hex.to(sha256(keyId))..'.pem');- module:log("debug", "Fetching public key from: "..keyurl);+ module:log("debug", "Fetching public key from: %s", keyurl);content = http_get_with_retry(keyurl, nr_retries);if content ~= nil thenself.cache:set(keyId, content);@@ -138,7 +138,7 @@ function Util:get_public_key(keyId)return content;else-- If the key is in the cache, use it.- module:log("debug", "Cache hit for key: "..keyId);+ module:log("debug", "Cache hit for key: %s", keyId);return content;endend