fix(breakout,av-moderation): support non-ascii room names
rooms are created in prosody in their urlencoded form, eg täst becomes t%c3%a4st@conference.jitsi.example.org As local params = formdecode(query) contains an urldecode, we need to reencode the room name so that the room can be found in prosody. Closes: #10525 Signed-off-by: Christoph Settgast <csett86@web.de>
This commit is contained in:
parent
ae3fb20d65
commit
a6bc51cff1
|
@ -3,6 +3,7 @@
|
|||
module:set_global();
|
||||
|
||||
local formdecode = require "util.http".formdecode;
|
||||
local urlencode = require "util.http".urlencode;
|
||||
|
||||
-- Extract the following parameters from the URL and set them in the session:
|
||||
-- * previd: for session resumption
|
||||
|
@ -18,7 +19,7 @@ function init_session(event)
|
|||
session.previd = query and params.previd or nil;
|
||||
|
||||
-- The room name and optional prefix from the web query
|
||||
session.jitsi_web_query_room = params.room;
|
||||
session.jitsi_web_query_room = urlencode(params.room);
|
||||
session.jitsi_web_query_prefix = params.prefix or "";
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue