Browse Source
Fix: Correct validation logic in isValidName function
pull/1500/head
João Brázio
4 months ago
No known key found for this signature in database
GPG Key ID: 56A1490716A324DD
1 changed files with
1 additions and
1 deletions
-
src/helpers/CommonCLI.cpp
|
|
|
@ -16,7 +16,7 @@ static uint32_t _atoi(const char* sp) { |
|
|
|
|
|
|
|
static bool isValidName(const char *n) { |
|
|
|
while (*n) { |
|
|
|
if (*n == '[' || *n == ']' || *n == '/' || *n == '\\' || *n == ':' || *n == ',' || *n == '?' || *n == '*') return false; |
|
|
|
if (*n == '[' || *n == ']' || *n == '\\' || *n == ':' || *n == ',' || *n == '?' || *n == '*') return false; |
|
|
|
n++; |
|
|
|
} |
|
|
|
return true; |
|
|
|
|