Browse Source

Fix: Correct validation logic in isValidName function

pull/1500/head
João Brázio 4 months ago
parent
commit
edeafde51c
No known key found for this signature in database GPG Key ID: 56A1490716A324DD
  1. 2
      src/helpers/CommonCLI.cpp

2
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;

Loading…
Cancel
Save