From 14228785ef66a8a0ae017ed1e85d7a354fd3232c Mon Sep 17 00:00:00 2001 From: fengzero Date: Mon, 7 Sep 2026 07:28:52 +0000 Subject: [PATCH] tags symbol check --- plugins/restful/adapter_handle.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/restful/adapter_handle.c b/plugins/restful/adapter_handle.c index 7e7abde6a..cc6d3b9b7 100644 --- a/plugins/restful/adapter_handle.c +++ b/plugins/restful/adapter_handle.c @@ -64,12 +64,10 @@ static bool tags_check_symbol(const char *tags) { for (size_t i = 0; i < strlen(tags); i++) { char c = tags[i]; - if (c == '!' || c == '@' || c == '#' || c == '$' || c == '%' || - c == '^' || c == '&' || c == '*' || c == '(' || c == ')' || - c == '-' || c == '+' || c == '=' || c == '[' || c == ']' || - c == '{' || c == '}' || c == ';' || c == ':' || c == '\'' || - c == '"' || c == '<' || c == '>' || c == '?' || c == '\\' || - c == '|' || c == '~' || c == '`' || c == '\t' || c == '\n') { + if (c == '^' || c == '=' || c == '[' || c == ']' || c == '{' || + c == '}' || c == ';' || c == ':' || c == '\'' || c == '"' || + c == '<' || c == '>' || c == '?' || c == '\\' || c == '|' || + c == '~' || c == '`' || c == '\t' || c == '\n') { return false; } }