URI escape file upload URLs

This commit is contained in:
Shadowfacts 2019-01-14 11:31:44 -05:00
parent fbcb6f76b6
commit 42b7584068
No known key found for this signature in database
GPG key ID: 94A5AB95422746E5

View file

@ -215,7 +215,7 @@ defp tempfile_for_image(data) do
end
defp url_from_spec(base_url, {:file, path}) do
[base_url, "media", path]
[base_url, "media", URI.encode(path)]
|> Path.join()
end