diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-15 20:30:56 +0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-15 20:30:56 +0400 |
commit | 57baa49bc3c71cc8084d925415e44ad1b8ad73a9 (patch) | |
tree | d0cf3e4b0ba84755cabf75fa0152b9e0cd7cf423 /config | |
parent | 29158ea38c74f23ff570c6ac4c90725624cb0dcd (diff) |
project path & code regexp validation
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/rails_footnotes.rb | 2 | ||||
-rw-r--r-- | config/routes.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/rails_footnotes.rb b/config/initializers/rails_footnotes.rb index da9d58e4acb..2e578ec961f 100644 --- a/config/initializers/rails_footnotes.rb +++ b/config/initializers/rails_footnotes.rb @@ -1,5 +1,5 @@ if defined?(Footnotes) && Rails.env.development? - Footnotes.run! # first of all + #Footnotes.run! # first of all # ... other init code end 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 => /.*/ } |