Commit b821a1bd authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix markdown image uploader after rails update

parent c6860a58
...@@ -86,9 +86,9 @@ Gitlab::Application.routes.draw do ...@@ -86,9 +86,9 @@ Gitlab::Application.routes.draw do
constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /.+/ } constraints: { model: /note|user|group|project/, mounted_as: /avatar|attachment/, filename: /.+/ }
# Project markdown uploads # Project markdown uploads
get ":id/:secret/:filename", get ":namespace_id/:id/:secret/:filename",
to: "projects/uploads#show", to: "projects/uploads#show",
constraints: { id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/, filename: /.+/ } constraints: { namespace_id: /[a-zA-Z.0-9_\-]+/, id: /[a-zA-Z.0-9_\-]+/, filename: /.+/ }
end end
# #
......
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