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:
parent
a0d655432a
commit
8d4bf22008
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue