diff options
| author | Robert Speicher <rspeicher@gmail.com> | 2016-01-29 19:49:07 -0500 |
|---|---|---|
| committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-29 19:52:29 -0500 |
| commit | d97742570fce0512eddb6dc6c924d541aa4f57e4 (patch) | |
| tree | a36e3b79cd3439b4d4d6de11b9e204f85e4131df /config | |
| parent | dec21517186f7406da2efd76569b4dff4fa711e0 (diff) | |
| download | gitlab-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.rb | 2 |
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 |
