summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-01-29 19:49:07 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-01-29 19:52:29 -0500
commitd97742570fce0512eddb6dc6c924d541aa4f57e4 (patch)
treea36e3b79cd3439b4d4d6de11b9e204f85e4131df /config
parentdec21517186f7406da2efd76569b4dff4fa711e0 (diff)
downloadgitlab-ce-d97742570fce0512eddb6dc6c924d541aa4f57e4.tar.gz
Increase the minimum length for commit SHA matching to 7rs-issue-12706
This is the git default and will help to prevent false positive matches. Closes #12706
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index fdfdb449085..54cc338b605 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -490,7 +490,7 @@ Rails.application.routes.draw do
end
resource :avatar, only: [:show, :destroy]
- resources :commit, only: [:show], constraints: { id: /[[:alnum:]]{6,40}/ } do
+ resources :commit, only: [:show], constraints: { id: /\h{7,40}/ } do
member do
get :branches
get :builds