Commit b1f58fca authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

allow any attachment filenames

parent 115454f3
...@@ -48,7 +48,7 @@ Gitlab::Application.routes.draw do ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment