diff options
Diffstat (limited to 'plugins-scripts')
-rw-r--r-- | plugins-scripts/utils.pm.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
60 | } else { | 60 | } else { |
61 | return 0; | 61 | return 0; |
62 | } | 62 | } |
63 | } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z0-9][-a-zA-Z0-9]+)*\.?$/) { | 63 | } elsif ($host1 =~ m/^[a-zA-Z0-9][-a-zA-Z0-9]*(\.[a-zA-Z0-9][-a-zA-Z0-9]*)*\.?$/) { |
64 | return 1; | 64 | return 1; |
65 | } else { | 65 | } else { |
66 | return 0; | 66 | return 0; |