diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-02 13:24:33 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-02 13:24:33 +0100 |
commit | 522916d7c71c35d61d03ff25dc5d8e726f6bf9b3 (patch) | |
tree | e4ad81658d6c20357a34568bcb14991638e04391 | |
parent | b679ffe808759514c5dc12151ea7ff28c17c43a1 (diff) | |
download | prosody-522916d7c71c35d61d03ff25dc5d8e726f6bf9b3.tar.gz prosody-522916d7c71c35d61d03ff25dc5d8e726f6bf9b3.zip |
core.sessionmanager: Fix traceback from passing nil to resourceprep
-rw-r--r-- | core/sessionmanager.lua | 2 |
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 |