diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-15 20:30:56 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-15 20:30:56 +0400 |
commit | bd08cac88c8919f156c645f30beac81699ae0122 (patch) | |
tree | d0cf3e4b0ba84755cabf75fa0152b9e0cd7cf423 /config/routes.rb | |
parent | 82f79d71ea5417a4ca61892770a68a3ea9beb648 (diff) |
project path & code regexp validation
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 00106b119a6..cd8dc4ceef3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -32,7 +32,7 @@ Gitlab::Application.routes.draw do get "tree/:commit_id/:path" => "projects#tree", :as => :tree_file, :constraints => { - :id => /[a-zA-Z0-9]+/, + :id => /[a-zA-Z0-9_\-]+/, :commit_id => /[a-zA-Z0-9]+/, :path => /.*/ } |