From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/195732-utils.pm-1.4.3.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 web/attachments/195732-utils.pm-1.4.3.patch (limited to 'web/attachments/195732-utils.pm-1.4.3.patch') diff --git a/web/attachments/195732-utils.pm-1.4.3.patch b/web/attachments/195732-utils.pm-1.4.3.patch new file mode 100644 index 0000000..987e4b8 --- /dev/null +++ b/web/attachments/195732-utils.pm-1.4.3.patch @@ -0,0 +1,11 @@ +--- utils.pm.orig Thu Sep 28 14:05:56 2006 ++++ utils.pm Thu Sep 28 14:06:01 2006 +@@ -73,7 +73,7 @@ + + sub is_hostname { + my $host1 = shift; +- if ($host1 && $host1 =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/) { ++ if ($host1 && $host1 =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z0-9][-a-zA-Z0-9]+(\.[a-zA-Z0-9][-a-zA-Z0-9]+)*\.[a-zA-Z][-a-zA-Z0-9]+)$/) { + return 1; + }else{ + return 0; -- cgit v1.2.3-74-g34f1