25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Use http_uri only when matrix requires it, ammend commit 59ff77e

This commit is contained in:
Badlop 2024-02-21 11:08:44 +01:00
parent 27d5a1d5bb
commit 5fb76b4918

View File

@ -98,8 +98,13 @@ uri_parse(URL, Protocols) ->
-endif. -endif.
-ifdef(OTP_BELOW_25). -ifdef(OTP_BELOW_25).
-ifdef(OTP_BELOW_24).
uri_quote(Data) ->
Data.
-else.
uri_quote(Data) -> uri_quote(Data) ->
http_uri:encode(Data). http_uri:encode(Data).
-endif.
-else. -else.
uri_quote(Data) -> uri_quote(Data) ->
uri_string:quote(Data). uri_string:quote(Data).