allow any attachment filenames

This commit is contained in:
Dmitriy Zaporozhets 2013-02-28 19:29:21 +02:00
parent 115454f3ed
commit b1f58fcaea

View file

@ -48,7 +48,7 @@ Gitlab::Application.routes.draw do
# #
# Attachments serving # 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 # Admin Area