URI escape file upload URLs
authorShadowfacts <me@shadowfacts.net>
Mon, 14 Jan 2019 16:31:44 +0000 (11:31 -0500)
committerShadowfacts <me@shadowfacts.net>
Mon, 14 Jan 2019 16:31:44 +0000 (11:31 -0500)
lib/pleroma/upload.ex

index 0b1bdeec4733f2117d39b3d63349893f57924dfb..185ba25fa15effd4b85e98c675d9be4823bb0a26 100644 (file)
@@ -215,7 +215,7 @@ defmodule Pleroma.Upload do
   end
 
   defp url_from_spec(base_url, {:file, path}) do
-    [base_url, "media", path]
+    [base_url, "media", URI.encode(path)]
     |> Path.join()
   end