From c408868148aa0f7bbfe7865ce284c8a2000560ba Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 20 May 2026 09:01:16 +0200 Subject: [PATCH] mod/notification-ntfy: use :convert for url-encoding --- mod/notification-ntfy.rsc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/notification-ntfy.rsc b/mod/notification-ntfy.rsc index b3660d8c..25156acd 100644 --- a/mod/notification-ntfy.rsc +++ b/mod/notification-ntfy.rsc @@ -80,7 +80,6 @@ :global IfThenElse; :global LogPrint; :global SymbolForNotification; - :global UrlEncode; :local Server [ $EitherOr ($NtfyServerOverride->($Notification->"origin")) $NtfyServer ]; :local User [ $EitherOr ($NtfyServerUserOverride->($Notification->"origin")) $NtfyServerUser ]; @@ -92,7 +91,7 @@ :return false; } - :local Url ("https://" . $Server . "/" . [ $UrlEncode $Topic ]); + :local Url ("https://" . $Server . "/" . [ :convert to=url $Topic ]); :local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \ ("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \ ("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) });