mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Add test for URLs with Unicode characters too
This commit is contained in:
parent
ce3ffad13a
commit
e143747445
1 changed files with 7 additions and 0 deletions
|
@ -156,6 +156,13 @@ defmodule Pleroma.MediaProxyTest do
|
||||||
assert decode_result(encoded) == url
|
assert decode_result(encoded) == url
|
||||||
end
|
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
|
test "does not change whitelisted urls" do
|
||||||
upload_config = Pleroma.Config.get([Pleroma.Upload])
|
upload_config = Pleroma.Config.get([Pleroma.Upload])
|
||||||
media_url = "https://media.pleroma.social"
|
media_url = "https://media.pleroma.social"
|
||||||
|
|
Loading…
Reference in a new issue