URI escape file upload URLs
This commit is contained in:
parent
fbcb6f76b6
commit
42b7584068
|
@ -215,7 +215,7 @@ defp tempfile_for_image(data) do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp url_from_spec(base_url, {:file, path}) do
|
defp url_from_spec(base_url, {:file, path}) do
|
||||||
[base_url, "media", path]
|
[base_url, "media", URI.encode(path)]
|
||||||
|> Path.join()
|
|> Path.join()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue