Commit 6d4076fd authored by Ciro Santilli's avatar Ciro Santilli

Disallow POST to compare: does not create objects

parent bbc52b00
...@@ -212,7 +212,8 @@ Gitlab::Application.routes.draw do ...@@ -212,7 +212,8 @@ Gitlab::Application.routes.draw do
end end
end end
match "/compare/:from...:to" => "compare#show", as: "compare", via: [:get, :post], constraints: {from: /.+/, to: /.+/} get '/compare/:from...:to' => 'compare#show', :as => 'compare',
:constraints => {from: /.+/, to: /.+/}
resources :snippets, constraints: {id: /\d+/} do resources :snippets, constraints: {id: /\d+/} do
member do member do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment