From f8af2fc3bfec72de4d3b812bdb9cd1cae93b0d81 Mon Sep 17 00:00:00 2001 From: Joshua Arts Date: Thu, 16 Aug 2018 13:25:32 -0400 Subject: [PATCH] escape uid in invite path --- app/models/room.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/room.rb b/app/models/room.rb index 39c01ded..867886c2 100644 --- a/app/models/room.rb +++ b/app/models/room.rb @@ -39,9 +39,9 @@ class Room < ApplicationRecord bbb.is_meeting_running?(bbb_id) end - # Determines the invite URL for the room. + # Determines the invite path for the room. def invite_path - "#{Rails.configuration.relative_url_root}/#{uid}" + "#{Rails.configuration.relative_url_root}/#{CGI.escape(uid)}" end # Creates a meeting on the BigBlueButton server.