From: Ton Voon Date: Tue, 12 Dec 2006 08:56:01 +0000 (+0000) Subject: Allow single characters in fqdn (Dave Alden) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc6caed01ca286e40d0177d68aae5497c52bf61d;p=nagiosplug.git Allow single characters in fqdn (Dave Alden) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1548 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins-scripts/utils.pm.in b/plugins-scripts/utils.pm.in index 8449b54..d68f309 100644 --- a/plugins-scripts/utils.pm.in +++ b/plugins-scripts/utils.pm.in @@ -60,7 +60,7 @@ sub is_hostname { } else { return 0; } - } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z0-9][-a-zA-Z0-9]+)*\.?$/) { + } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]*(\.[a-zA-Z0-9][-a-zA-Z0-9]*)*\.?$/) { return 1; } else { return 0;