Skip to content

Commit 36a86a2

Browse files
authored
Merge pull request #2942 from fengzeroz/v2.15
tags symbol check
2 parents 5f5a649 + 1422878 commit 36a86a2

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎plugins/restful/adapter_handle.c‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ static bool tags_check_symbol(const char *tags)
6464
{
6565
for (size_t i = 0; i < strlen(tags); i++) {
6666
char c = tags[i];
67-
if (c == '!' || c == '@' || c == '#' || c == '$' || c == '%' ||
68-
c == '^' || c == '&' || c == '*' || c == '(' || c == ')' ||
69-
c == '-' || c == '+' || c == '=' || c == '[' || c == ']' ||
70-
c == '{' || c == '}' || c == ';' || c == ':' || c == '\'' ||
71-
c == '"' || c == '<' || c == '>' || c == '?' || c == '\\' ||
72-
c == '|' || c == '~' || c == '`' || c == '\t' || c == '\n') {
67+
if (c == '^' || c == '=' || c == '[' || c == ']' || c == '{' ||
68+
c == '}' || c == ';' || c == ':' || c == '\'' || c == '"' ||
69+
c == '<' || c == '>' || c == '?' || c == '\\' || c == '|' ||
70+
c == '~' || c == '`' || c == '\t' || c == '\n') {
7371
return false;
7472
}
7573
}

0 commit comments

Comments
 (0)