allow any attachment filenames

5-0-stable
Dmitriy Zaporozhets 2013-02-28 19:29:21 +02:00
parent 115454f3ed
commit b1f58fcaea
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ Gitlab::Application.routes.draw do
#
# Attachments serving
#
get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /[a-zA-Z.0-9_\-\+]+/ }
get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /.+/ }
#
# Admin Area