Uncomment previously commented line which prevented the domain validator from accepting hostnames with capital letters in

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2024-03-16 00:16:59 +00:00
parent a0d655432a
commit 8d4bf22008
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ inline bool __attribute__((pure)) valid_domain(const char *domain, const size_t
// Domain must not contain any character other than [a-zA-Z0-9.-_]
if(domain[i] != '-' && domain[i] != '.' && domain[i] != '_' &&
(domain[i] < 'a' || domain[i] > 'z') &&
// (domain[i] < 'A' || domain[i] > 'Z') && // not needed as all domains are converted to lowercase
(domain[i] < 'A' || domain[i] > 'Z') &&
(domain[i] < '0' || domain[i] > '9'))
return false;