提交 6d4076fd 编写于 作者: C Ciro Santilli

Disallow POST to compare: does not create objects

上级 bbc52b00
......@@ -212,7 +212,8 @@ Gitlab::Application.routes.draw do
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
member do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册