Software /
code /
prosody
Diff
core/sessionmanager.lua @ 10372:5482f21a18a2
core.sessionmanager: Fix traceback from passing nil to resourceprep
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Nov 2019 13:24:33 +0100 |
parent | 10105:63f87211fcdd |
child | 10378:04c4750ff8d2 |
line wrap: on
line diff
--- a/core/sessionmanager.lua Sat Nov 02 13:09:54 2019 +0100 +++ b/core/sessionmanager.lua Sat Nov 02 13:24:33 2019 +0100 @@ -150,7 +150,7 @@ 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