Sanitize media uploads.

This commit is contained in:
Lain Soykaf 2025-03-10 17:23:21 +04:00
commit 1dd9ba5d6f
3 changed files with 113 additions and 9 deletions

View file

@ -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