diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-06-23 19:13:03 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-06-23 19:13:03 -0500 |
commit | ba41e758a786158c695229faa1068c06717bf79f (patch) | |
tree | 7de894d45dd3da3539c70e5ae76c4b810663c678 /hscript/meta.cc | |
parent | a0f9b88d4bacad9df4bb10f7a68bfc310bbcf4b1 (diff) | |
download | horizon-ba41e758a786158c695229faa1068c06717bf79f.tar.gz horizon-ba41e758a786158c695229faa1068c06717bf79f.tar.bz2 horizon-ba41e758a786158c695229faa1068c06717bf79f.tar.xz horizon-ba41e758a786158c695229faa1068c06717bf79f.zip |
Change Runner.Validate.hostname.Begin to allow numeric characters
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r-- | hscript/meta.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |