From fc6caed01ca286e40d0177d68aae5497c52bf61d Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Tue, 12 Dec 2006 08:56:01 +0000 Subject: 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 --- plugins-scripts/utils.pm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins-scripts/utils.pm.in') diff --git a/plugins-scripts/utils.pm.in b/plugins-scripts/utils.pm.in index 8449b544..d68f3090 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; -- cgit v1.2.3