mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Document that the workaround is only needed for OTP lower than 23.2
This commit is contained in:
parent
705f401961
commit
3cf5ceb106
@ -126,6 +126,7 @@ page(Config, Tail) ->
|
|||||||
Server = ?config(server_host, Config),
|
Server = ?config(server_host, Config),
|
||||||
Port = ct:get_config(web_port, 5280),
|
Port = ct:get_config(web_port, 5280),
|
||||||
Url = "http://" ++ Server ++ ":" ++ integer_to_list(Port) ++ "/admin/" ++ Tail,
|
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
|
case catch uri_string:normalize("/%2525") of
|
||||||
"/%25" ->
|
"/%25" ->
|
||||||
string:replace(Url, "%25", "%2525", all);
|
string:replace(Url, "%25", "%2525", all);
|
||||||
|
Loading…
Reference in New Issue
Block a user