Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-15 20:30:56 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-15 20:30:56 +0400
commitbd08cac88c8919f156c645f30beac81699ae0122 (patch)
treed0cf3e4b0ba84755cabf75fa0152b9e0cd7cf423 /config/routes.rb
parent82f79d71ea5417a4ca61892770a68a3ea9beb648 (diff)
project path & code regexp validation
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb2
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 => /.*/
}