From f4d653f9c0b3488e067b7050d07e78c05271d41c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 20 May 2026 09:00:33 +0200 Subject: [PATCH] mod/notification-matrix: use :convert for url-encoding --- mod/notification-matrix.rsc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mod/notification-matrix.rsc b/mod/notification-matrix.rsc index 5827e618..004ab1f2 100644 --- a/mod/notification-matrix.rsc +++ b/mod/notification-matrix.rsc @@ -242,7 +242,6 @@ :global FetchUserAgentStr; :global LogPrint; - :global UrlEncode; :global MatrixAccessToken; :global MatrixHomeServer; @@ -251,8 +250,8 @@ :onerror Err { /tool/fetch check-certificate=yes-without-crl output=none \ http-header-field=({ [ $FetchUserAgentStr $0 ] }) http-method=post http-data="" \ - ("https://" . $MatrixHomeServer . "/_matrix/client/r0/rooms/" . [ $UrlEncode $MatrixRoom ] . \ - "/join?access_token=" . [ $UrlEncode $MatrixAccessToken ]) as-value; + ("https://" . $MatrixHomeServer . "/_matrix/client/r0/rooms/" . [ :convert to=url $MatrixRoom ] . \ + "/join?access_token=" . [ :convert to=url $MatrixAccessToken ]) as-value; $LogPrint debug $0 ("Joined the room."); } do={ $LogPrint error $0 ("Failed joining the room: " . $Err);