Commit ff976bc86c73e5a060aa36744976c1712965dd81

Authored by Johannes Schleifenbaum
1 parent ffe064a2

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,7 +18,7 @@ Gitlab::Application.routes.draw do
18 project_root: Gitlab.config.gitolite.repos_path, 18 project_root: Gitlab.config.gitolite.repos_path,
19 upload_pack: Gitlab.config.gitolite.upload_pack, 19 upload_pack: Gitlab.config.gitolite.upload_pack,
20 receive_pack: Gitlab.config.gitolite.receive_pack 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 # Help 24 # Help