From 5fb76b49181471897bf727121523736b38c539c7 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 21 Feb 2024 11:08:44 +0100 Subject: [PATCH] Use http_uri only when matrix requires it, ammend commit 59ff77e --- src/misc.erl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/misc.erl b/src/misc.erl index 1800ca253..52a2fb15f 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -98,8 +98,13 @@ uri_parse(URL, Protocols) -> -endif. -ifdef(OTP_BELOW_25). +-ifdef(OTP_BELOW_24). +uri_quote(Data) -> + Data. +-else. uri_quote(Data) -> http_uri:encode(Data). +-endif. -else. uri_quote(Data) -> uri_string:quote(Data).