From 5e85589638afcb50b8632040e6627840b85fc77a Mon Sep 17 00:00:00 2001 From: Austin Best Date: Sun, 8 Dec 2024 01:20:45 -0500 Subject: [PATCH] Escape underscores in Telegram notifications. Fixes #48 --- root/app/www/public/classes/traits/Notifications/Telegram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/app/www/public/classes/traits/Notifications/Telegram.php b/root/app/www/public/classes/traits/Notifications/Telegram.php index ee6ba26..0f41cfb 100644 --- a/root/app/www/public/classes/traits/Notifications/Telegram.php +++ b/root/app/www/public/classes/traits/Notifications/Telegram.php @@ -168,7 +168,7 @@ public function buildTelegramMessage($payload, $test = false) public function escapeTelegramNotification($message) { - $chars = ['-', '.', '(', ')', '<', '>', '=', '[', ']']; + $chars = ['-', '.', '(', ')', '<', '>', '=', '[', ']', '_']; foreach ($chars as $char) { $message = str_replace($char, '\\' . $char, $message); }