aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-02 13:24:33 +0100
committerKim Alvefur <zash@zash.se>2019-11-02 13:24:33 +0100
commitb480791da95848d3cd78c71d2ff7c98946bddfca (patch)
treee4ad81658d6c20357a34568bcb14991638e04391
parent99ae8431de84d208455d6d432140217de3e9ea52 (diff)
downloadprosody-b480791da95848d3cd78c71d2ff7c98946bddfca.tar.gz
prosody-b480791da95848d3cd78c71d2ff7c98946bddfca.zip
core.sessionmanager: Fix traceback from passing nil to resourceprep
-rw-r--r--core/sessionmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 29779c3c..a62db906 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -150,7 +150,7 @@ local function bind_resource(session, resource)
resource = event_payload.resource;
end
- resource = resourceprep(resource);
+ resource = resourceprep(resource or "");
resource = resource ~= "" and resource or generate_identifier();
--FIXME: Randomly-generated resources must be unique per-user, and never conflict with existing