From: Mark Felder Date: Tue, 9 Jul 2019 15:55:36 +0000 (-0500) Subject: Add test for URLs with Unicode characters too X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e143747445a0cd4f9b34c1b96ab7e87632e21a74;p=akkoma Add test for URLs with Unicode characters too --- diff --git a/test/media_proxy_test.exs b/test/media_proxy_test.exs index 13922fe4a..1d6d170b7 100644 --- a/test/media_proxy_test.exs +++ b/test/media_proxy_test.exs @@ -156,6 +156,13 @@ defmodule Pleroma.MediaProxyTest do assert decode_result(encoded) == url end + test "preserve unicode characters" do + url = "https://ko.wikipedia.org/wiki/위키백과:대문" + + encoded = url(url) + assert decode_result(encoded) == url + end + test "does not change whitelisted urls" do upload_config = Pleroma.Config.get([Pleroma.Upload]) media_url = "https://media.pleroma.social"