strip spaces and newlines from meeting names

This commit is contained in:
Zachary Chai
2017-03-21 11:25:00 -04:00
parent 97e1c6840b
commit 19929c4553
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ Rails.application.routes.draw do
post '/:room_id/:id/callback', to: 'bbb#callback' #, defaults: {format: 'json'}
# routes shared between meetings and rooms
get '/(:room_id)/:id/join', to: 'bbb#join', defaults: {room_id: nil, format: 'json'}
get '/(:room_id)/:id/join', to: 'bbb#join', defaults: {room_id: nil, format: 'json'}, :constraints => {:id => /[^\/]+/} # override the constraint to allow '.' and disallow '/'
get '/(:room_id)/:id', to: 'landing#resource', as: :meeting_room, defaults: {room_id: nil}, :constraints => {:id => /[^\/]+/} # override the constraint to allow '.' and disallow '/'
end