Upload: Fix uploading with a ? in the filename
This commit is contained in:
parent
f20bfc9ea5
commit
e3eb75bd23
2 changed files with 21 additions and 1 deletions
|
|
@ -215,7 +215,12 @@ defmodule Pleroma.Upload do
|
|||
end
|
||||
|
||||
defp url_from_spec(base_url, {:file, path}) do
|
||||
[base_url, "media", URI.encode(path)]
|
||||
path =
|
||||
path
|
||||
|> URI.encode()
|
||||
|> String.replace("?", "%3F")
|
||||
|
||||
[base_url, "media", path]
|
||||
|> Path.join()
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue