projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbcb6f7
)
URI escape file upload URLs
author
Shadowfacts
<me@shadowfacts.net>
Mon, 14 Jan 2019 16:31:44 +0000
(11:31 -0500)
committer
Shadowfacts
<me@shadowfacts.net>
Mon, 14 Jan 2019 16:31:44 +0000
(11:31 -0500)
lib/pleroma/upload.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/upload.ex
b/lib/pleroma/upload.ex
index 0b1bdeec4733f2117d39b3d63349893f57924dfb..185ba25fa15effd4b85e98c675d9be4823bb0a26 100644
(file)
--- 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