Software /
code /
prosody
Changeset
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 |
parents | 10371:228338120009 |
children | 10373:51ea82f55322 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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