Commit ff976bc86c73e5a060aa36744976c1712965dd81
1 parent
ffe064a2
Exists in
master
and in
4 other branches
fix grack accessing files beginning with .git
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/routes.rb
... | ... | @@ -18,7 +18,7 @@ Gitlab::Application.routes.draw do |
18 | 18 | project_root: Gitlab.config.gitolite.repos_path, |
19 | 19 | upload_pack: Gitlab.config.gitolite.upload_pack, |
20 | 20 | receive_pack: Gitlab.config.gitolite.receive_pack |
21 | - }), at: '/', constraints: lambda { |request| /[-\/\w\.-]+\.git/.match(request.path_info) } | |
21 | + }), at: '/', constraints: lambda { |request| /[-\/\w\.-]+\.git\//.match(request.path_info) } | |
22 | 22 | |
23 | 23 | # |
24 | 24 | # Help | ... | ... |