From f86cd1aaa08810c9284e967ebba470d41ecf8e69 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 7 Aug 2024 16:28:58 +0300 Subject: [PATCH] tg_cli: don't allow $ as delimiter. --- td/telegram/cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 2c58ecb8c..6abb6f57f 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -458,7 +458,7 @@ class CliClient final : public Actor { static char get_delimiter(Slice str) { FlatHashSet chars; for (auto c : trim(str)) { - if (!is_alnum(c) && c != '_' && c != '-' && c != '@' && c != '.' && c != '/' && c != '\0' && + if (!is_alnum(c) && c != '_' && c != '-' && c != '@' && c != '.' && c != '/' && c != '\0' && c != '$' && static_cast(c) <= 127) { chars.insert(c); }