mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-06-01 08:12:39 +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 IfThenElse;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
:global UrlEncode;
|
|
||||||
|
|
||||||
:local Server [ $EitherOr ($NtfyServerOverride->($Notification->"origin")) $NtfyServer ];
|
:local Server [ $EitherOr ($NtfyServerOverride->($Notification->"origin")) $NtfyServer ];
|
||||||
:local User [ $EitherOr ($NtfyServerUserOverride->($Notification->"origin")) $NtfyServerUser ];
|
:local User [ $EitherOr ($NtfyServerUserOverride->($Notification->"origin")) $NtfyServerUser ];
|
||||||
|
|
@ -92,7 +91,7 @@
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:local Url ("https://" . $Server . "/" . [ $UrlEncode $Topic ]);
|
:local Url ("https://" . $Server . "/" . [ :convert to=url $Topic ]);
|
||||||
:local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \
|
:local Headers ({ [ $FetchUserAgentStr ($Notification->"origin") ]; \
|
||||||
("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \
|
("Priority: " . [ $IfThenElse ($Notification->"silent") "low" "default" ]); \
|
||||||
("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) });
|
("Title: " . "[" . $IdentityExtra . $Identity . "] " . ($Notification->"subject")) });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue