File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 -E ' s/([] [()~`>#+=|{}.!*_\\-] )/\\\\\1/g' ) "
38+ _content=" $( printf " %s" " $_content " | sed -E ' 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 \" , "
You can’t perform that action at this time.
0 commit comments