Upload: Fix uploading with a : in the filename

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-01-15 07:57:48 +01:00
commit 9fcdca1bdc
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
2 changed files with 4 additions and 3 deletions

View file

@ -219,6 +219,7 @@ defmodule Pleroma.Upload do
path
|> URI.encode()
|> String.replace("?", "%3F")
|> String.replace(":", "%3A")
[base_url, "media", path]
|> Path.join()