Sanitize media uploads.
This commit is contained in:
parent
b469b9d9d3
commit
1dd9ba5d6f
3 changed files with 113 additions and 9 deletions
|
|
@ -83,7 +83,7 @@ defmodule Pleroma.Web.Plugs.UploadedMedia do
|
|||
Map.get(opts, :static_plug_opts)
|
||||
|> Map.put(:at, [@path])
|
||||
|> Map.put(:from, directory)
|
||||
|> Map.put(:content_type, false)
|
||||
|> Map.put(:content_types, false)
|
||||
|
||||
conn =
|
||||
conn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue