From 5e012158670030ce9ca98740cacc78884fab314c Mon Sep 17 00:00:00 2001 From: steckbrief Date: Sun, 5 Jan 2025 21:41:52 +0100 Subject: [PATCH] fixes Attempt to read a non-existent global 'xmlns' --- .../mod_http_upload_external/mod_http_upload_external.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua index f572169..e41932e 100644 --- a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua +++ b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua @@ -369,7 +369,7 @@ local function create_upload_slot(origin, orig_from, stanza, namespace, recipien local reply = st.reply(stanza); reply:tag("slot", { xmlns = namespace }); - if xmlns == xmlns_http_upload_0 then + if namespace == xmlns_http_upload_0 then reply:tag("put", { url = put_url }):up(); reply:tag("get", { url = get_url }):up(); else @@ -484,4 +484,4 @@ module:hook("iq/host/"..xmlns_http_upload_0..":request", function (event) local content_type = request.attr["content-type"] or "application/octet-stream"; return create_upload_slot(origin, orig_from, stanza, xmlns_http_upload_0, "Unknown", filename, filesize, content_type); -end); \ No newline at end of file +end);