mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-10 10:04:30 +02:00
mod/notification-matrix: ... and more double escaping
This commit is contained in:
parent
3a36db6de8
commit
b50a5b294a
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@
|
||||||
($Notification->"subject")) ] . "</h2>" . "<pre><code>" . \
|
($Notification->"subject")) ] . "</h2>" . "<pre><code>" . \
|
||||||
[ $PrepareText ($Notification->"message") ] . "</code></pre>");
|
[ $PrepareText ($Notification->"message") ] . "</code></pre>");
|
||||||
:if ([ :len ($Notification->"link") ] > 0) do={
|
:if ([ :len ($Notification->"link") ] > 0) do={
|
||||||
:set Plain ($Plain . "\\n" . [ $SymbolForNotification "link" ] . \
|
:set Plain ($Plain . "\n" . [ $SymbolForNotification "link" ] . \
|
||||||
"[" . $Notification->"link" . "](" . $Notification->"link" . ")");
|
"[" . $Notification->"link" . "](" . $Notification->"link" . ")");
|
||||||
:set Formatted ($Formatted . "<br/>" . [ $SymbolForNotification "link" ] . \
|
:set Formatted ($Formatted . "<br/>" . [ $SymbolForNotification "link" ] . \
|
||||||
"<a href=\"" . [ $PrepareText ($Notification->"link") ] . "\">" . \
|
"<a href=\"" . [ $PrepareText ($Notification->"link") ] . "\">" . \
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
:local Text ([ $SymbolForNotification "alarm-clock" ] . \
|
:local Text ([ $SymbolForNotification "alarm-clock" ] . \
|
||||||
"This message was queued since " . [ /system/clock/get date ] . \
|
"This message was queued since " . [ /system/clock/get date ] . \
|
||||||
" " . [ /system/clock/get time ] . " and may be obsolete.");
|
" " . [ /system/clock/get time ] . " and may be obsolete.");
|
||||||
:set Plain ($Plain . "\\n" . $Text);
|
:set Plain ($Plain . "\n" . $Text);
|
||||||
:set Formatted ($Formatted . "<br/>" . $Text);
|
:set Formatted ($Formatted . "<br/>" . $Text);
|
||||||
:set ($MatrixQueue->[ :len $MatrixQueue ]) { headers=$Headers; \
|
:set ($MatrixQueue->[ :len $MatrixQueue ]) { headers=$Headers; \
|
||||||
accesstoken=$AccessToken; homeserver=$HomeServer; room=$Room; \
|
accesstoken=$AccessToken; homeserver=$HomeServer; room=$Room; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue