Skip to content

Commit

Permalink
[webui] ignore bots trying to break into our system
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 20, 2013
1 parent b777d2b commit 5641467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api/config/initializers/hoptoad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Timeout::Error
Net::HTTPBadResponse
WebuiMatcher::InvalidRequestFormat
ActionController::UnknownFormat
}

config.ignore_by_filter do |exception_data|
Expand Down
2 changes: 1 addition & 1 deletion src/api/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def self.matches?(request)
get 'request/add_reviewer_dialog' => :add_reviewer_dialog
post 'request/add_reviewer' => :add_reviewer
post 'request/modify_review' => :modify_review
get 'request/show/:id' => :show, as: 'request_show'
get 'request/show/:id' => :show, as: 'request_show', constraints: cons
post 'request/sourcediff' => :sourcediff
post 'request/changerequest' => :changerequest
get 'request/diff/:id' => :diff
Expand Down

0 comments on commit 5641467

Please sign in to comment.