[bbb-greenlight: 23/39] Manually encode the ampersand in a presentation file name (#2140)
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bbb-greenlight: 23/39] Manually encode the ampersand in a presentation file name (#2140)
- Date: Thu, 15 Oct 2020 07:11:22 +0000 (UTC)
commit 165eeccb23e241155f20818222d1f9309f3d01eb
Author: Ahmad Farhat <ahmad af farhat gmail com>
Date: Tue Sep 29 14:48:54 2020 -0400
Manually encode the ampersand in a presentation file name (#2140)
app/controllers/concerns/bbb_server.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/controllers/concerns/bbb_server.rb b/app/controllers/concerns/bbb_server.rb
index 0a343bb..81d70ab 100644
--- a/app/controllers/concerns/bbb_server.rb
+++ b/app/controllers/concerns/bbb_server.rb
@@ -79,8 +79,9 @@ module BbbServer
begin
meeting = if room.presentation.attached?
modules = BigBlueButton::BigBlueButtonModules.new
- logger.info("Support: Room #{room.uid} starting using presentation:
#{rails_blob_url(room.presentation)}")
- modules.add_presentation(:url, rails_blob_url(room.presentation))
+ url = rails_blob_url(room.presentation).gsub("&", "%26")
+ logger.info("Support: Room #{room.uid} starting using presentation: #{url}")
+ modules.add_presentation(:url, url)
bbb_server.create_meeting(room.name, room.bbb_id, create_options, modules)
else
bbb_server.create_meeting(room.name, room.bbb_id, create_options)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]