Commit b1f58fcaeab2320b549522c8ae792d57535224a6

Authored by Dmitriy Zaporozhets
1 parent 115454f3

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
... ...