Skip to content

Commit f2dbf56

Browse files
authored
Merge pull request #6514 from zjwangmin/dev
fix bug for #6510
2 parents e5214ea + 44c7473 commit f2dbf56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notify/telegram.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ telegram_send() {
3434
fi
3535
_saveaccountconf_mutable TELEGRAM_BOT_URLBASE "$TELEGRAM_BOT_URLBASE"
3636

37-
_subject="$(printf "%s" "$_subject" | sed 's/\\/\\\\\\\\/g' | sed 's/\]/\\\\\]/g' | sed 's/\([_*[()~`>#+\-=|{}.!]\)/\\\\\1/g')"
38-
_content="$(printf "%s" "$_content" | sed 's/\\/\\\\\\\\/g' | sed 's/\]/\\\\\]/g' | sed 's/\([_*[()~`>#+\-=|{}.!]\)/\\\\\1/g')"
37+
_subject="$(printf "%s" "$_subject" | sed 's/\\/\\\\\\\\/g' | sed 's/\]/\\\\\]/g' | sed 's/\([-_*[()~`>#+\-=|{}.!]\)/\\\\\1/g')"
38+
_content="$(printf "%s" "$_content" | sed 's/\\/\\\\\\\\/g' | sed 's/\]/\\\\\]/g' | sed 's/\([-_*[()~`>#+\-=|{}.!]\)/\\\\\1/g')"
3939
_content="$(printf "*%s*\n%s" "$_subject" "$_content" | _json_encode)"
4040
_data="{\"text\": \"$_content\", "
4141
_data="$_data\"chat_id\": \"$TELEGRAM_BOT_CHATID\", "

0 commit comments

Comments
 (0)