mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-05-31 15:52:37 +00:00
mod/notification-ntfy: use :convert for url-encoding
This commit is contained in:
parent
f4d653f9c0
commit
c408868148
1 changed files with 1 additions and 2 deletions
|
|
@ -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")) });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue