diff options
author | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2012-12-31 23:12:07 +0100 |
---|---|---|
committer | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2012-12-31 23:33:00 +0100 |
commit | ff976bc86c73e5a060aa36744976c1712965dd81 (patch) | |
tree | 09038f5e809296d4ec790ed022b584f1b0af531c /config/routes.rb | |
parent | ffe064a2c1cb831258bc1019215f2defe23e7f99 (diff) | |
download | gitlab-ce-ff976bc86c73e5a060aa36744976c1712965dd81.tar.gz |
fix grack accessing files beginning with .git
Diffstat (limited to 'config/routes.rb')
-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 1259496f634..5e556dccc27 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -18,7 +18,7 @@ Gitlab::Application.routes.draw do project_root: Gitlab.config.gitolite.repos_path, upload_pack: Gitlab.config.gitolite.upload_pack, receive_pack: Gitlab.config.gitolite.receive_pack - }), at: '/', constraints: lambda { |request| /[-\/\w\.-]+\.git/.match(request.path_info) } + }), at: '/', constraints: lambda { |request| /[-\/\w\.-]+\.git\//.match(request.path_info) } # # Help |