diff --git a/app/controllers/bbb_controller.rb b/app/controllers/bbb_controller.rb index 8fbbdc55..b99d5ef7 100644 --- a/app/controllers/bbb_controller.rb +++ b/app/controllers/bbb_controller.rb @@ -56,11 +56,11 @@ class BbbController < ApplicationController meeting_id = "#{params[:room_id]}-#{params[:id]}" meeting_name = params[:id] - meeting_path = "#{params[:room_id]}/#{params[:id]}" + meeting_path = "#{URI.encode(params[:room_id])}/#{URI.encode(params[:id]).gsub('/','%2F')}" else user = User.find_by encrypted_id: params[:id] meeting_id = params[:id] - meeting_path = meeting_id + meeting_path = URI.encode(meeting_id).gsub('/','%2F') end options = if user @@ -77,7 +77,7 @@ class BbbController < ApplicationController } end - base_url = "#{request.base_url}#{relative_root}/#{params[:resource]}/#{URI.encode(meeting_path).gsub('/','%2F')}" + base_url = "#{request.base_url}#{relative_root}/#{params[:resource]}/#{meeting_path}" options[:meeting_logout_url] = base_url options[:hook_url] = "#{base_url}/callback" options[:moderator_message] = t('moderator_default_message', url: "#{base_url}")