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:
Christoph Settgast 2021-12-06 21:59:33 +01:00 committed by Saúl Ibarra Corretgé
parent ae3fb20d65
commit a6bc51cff1
1 changed files with 2 additions and 1 deletions

View File

@ -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