The function isValidHostname, it can not detect illegal hostname like 'a=b-c'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15197 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2188,7 +2188,7 @@ sub isValidHostname | ||||
|     my ($class, $hostname) = @_; | ||||
|     if ($hostname =~ /^[a-z0-9]/){ | ||||
|         if ($hostname =~ /[a-z0-9]$/){ | ||||
|             if ($hostname =~ /[\-a-z0-9]+/){ | ||||
|             if ($hostname =~ /^[\-a-z0-9]+$/){ | ||||
|                 return 1; | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user