Commit b1f58fcaeab2320b549522c8ae792d57535224a6
1 parent
115454f3
Exists in
master
and in
4 other branches
allow any attachment filenames
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/routes.rb
... | ... | @@ -48,7 +48,7 @@ Gitlab::Application.routes.draw do |
48 | 48 | # |
49 | 49 | # Attachments serving |
50 | 50 | # |
51 | - get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /[a-zA-Z.0-9_\-\+]+/ } | |
51 | + get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /.+/ } | |
52 | 52 | |
53 | 53 | # |
54 | 54 | # Admin Area | ... | ... |