project path & code regexp validation
This commit is contained in:
parent
29158ea38c
commit
57baa49bc3
5 changed files with 9 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
if defined?(Footnotes) && Rails.env.development?
|
||||
Footnotes.run! # first of all
|
||||
#Footnotes.run! # first of all
|
||||
|
||||
# ... other init code
|
||||
end
|
||||
|
|
|
@ -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 => /.*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue