mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
This commit is contained in:
parent
fd8aba6d41
commit
2951281115
1 changed files with 1 additions and 1 deletions
|
@ -921,7 +921,7 @@ mk_slot(PutURL, GetURL, XMLNS, Query) ->
|
|||
end.
|
||||
|
||||
reencode_url(UrlString) ->
|
||||
{ok, _, _, Host, _, _, _} = yconf:parse_uri(UrlString),
|
||||
{ok, _, _, Host, _, _, _} = yconf:parse_uri(misc:url_encode(UrlString)),
|
||||
HostDecoded = misc:uri_decode(Host),
|
||||
HostIdna = idna:encode(HostDecoded),
|
||||
re:replace(UrlString, Host, HostIdna, [{return, binary}]).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue