From 840252b10b7f883a741ce860f08975e3a78f5af7 Mon Sep 17 00:00:00 2001 From: Alan Sebastian Date: Tue, 16 Apr 2013 14:00:16 -0700 Subject: [PATCH] Do not allow slashes in client names --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index c9bd459..a1d0ea9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,7 +11,7 @@ scope 'events' do match 'events_table' => 'events#events_table', :via => :get match 'modal_data' => 'events#modal_data', :via => :get - scope '/:client', :constraints => { :client => /[\w.\-\/]+/ } do + scope '/:client', :constraints => { :client => /[\w.\-]+/ } do match '/silence' => 'events#silence_client', :via => :post match '/unsilence' => 'events#unsilence_client', :via => :post scope '/:check' do