projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/public-option-not-working' into 'develop'
[akkoma]
/
lib
/
pleroma
/
plugs
/
uploaded_media.ex
diff --git
a/lib/pleroma/plugs/uploaded_media.ex
b/lib/pleroma/plugs/uploaded_media.ex
index 15f447ded319d97767592f0ffb17b999d40b1fac..fd77b8d8f30500dac7ee7c868bc69be3924c28b0 100644
(file)
--- a/
lib/pleroma/plugs/uploaded_media.ex
+++ b/
lib/pleroma/plugs/uploaded_media.ex
@@
-27,8
+27,10
@@
defmodule Pleroma.Plugs.UploadedMedia do
conn =
case fetch_query_params(conn) do
%{query_params: %{"name" => name}} = conn ->
conn =
case fetch_query_params(conn) do
%{query_params: %{"name" => name}} = conn ->
+ name = String.replace(name, "\"", "\\\"")
+
conn
conn
- |> put_resp_header("
Content-D
isposition", "filename=\"#{name}\"")
+ |> put_resp_header("
content-d
isposition", "filename=\"#{name}\"")
conn ->
conn
conn ->
conn