From ba41e758a786158c695229faa1068c06717bf79f Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 23 Jun 2020 19:13:03 -0500 Subject: Change Runner.Validate.hostname.Begin to allow numeric characters --- hscript/meta.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hscript') diff --git a/hscript/meta.cc b/hscript/meta.cc index 52ed3db..15734c5 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -43,9 +43,9 @@ bool Hostname::validate() const { bool any_failure = false; std::string::size_type last_dot = 0, next_dot = 0; - if(!isalpha(this->_value[0])) { + if(!isalnum(this->_value[0])) { any_failure = true; - output_error(pos, "hostname: must start with alphabetical character"); + output_error(pos, "hostname: must start with alphanumeric character"); } if(this->_value.size() > 320) { -- cgit v1.2.3-70-g09d2