25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Document that the workaround is only needed for OTP lower than 23.2

This commit is contained in:
Badlop 2020-12-18 21:21:27 +01:00
parent 705f401961
commit 3cf5ceb106

View File

@ -126,6 +126,7 @@ page(Config, Tail) ->
Server = ?config(server_host, Config),
Port = ct:get_config(web_port, 5280),
Url = "http://" ++ Server ++ ":" ++ integer_to_list(Port) ++ "/admin/" ++ Tail,
%% This bypasses a bug introduced in Erlang OTP R21 and fixed in 23.2:
case catch uri_string:normalize("/%2525") of
"/%25" ->
string:replace(Url, "%25", "%2525", all);