logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 07ba3bb829f8f501b3e98dd48c72e85fe543bc1e
parent bcdd78fba513146a297fa5ece73f059f95f29561
Author: Phantasm <phantasm@centrum.cz>
Date:   Mon, 20 Oct 2025 23:36:38 +0200

Remove "support" for path encoding quirks

Currently there isn't any known quirk that would be needed
and this is just dead code that does nothing.

Diffstat:

Mlib/pleroma/utils/uri_encoding.ex6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/pleroma/utils/uri_encoding.ex b/lib/pleroma/utils/uri_encoding.ex @@ -22,9 +22,7 @@ defmodule Pleroma.Utils.URIEncoding do true -> URI.parse(url) |> then(fn parsed -> - path = - encode_path(parsed.path, bypass_decode) - |> maybe_apply_path_encoding_quirks() + path = encode_path(parsed.path, bypass_decode) query = encode_query(parsed.query) @@ -76,8 +74,6 @@ defmodule Pleroma.Utils.URIEncoding do |> do_encode_query() end - defp maybe_apply_path_encoding_quirks(path), do: path - # Always uses www_form encoding defp do_encode_query(enumerable) do Enum.map_join(enumerable, "&", &maybe_apply_query_quirk(&1))