From: Shadowfacts Date: Mon, 14 Jan 2019 16:31:44 +0000 (-0500) Subject: URI escape file upload URLs X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=42b7584068e51a58d2bfe76729fe039fe7f6a7cf;p=akkoma URI escape file upload URLs --- diff --git a/lib/pleroma/upload.ex b/lib/pleroma/upload.ex index 0b1bdeec4..185ba25fa 100644 --- a/lib/pleroma/upload.ex +++ b/lib/pleroma/upload.ex @@ -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