aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/urlize.pl15
1 files changed, 14 insertions, 1 deletions
diff --git a/contrib/urlize.pl b/contrib/urlize.pl
index 8bb591f2..5acb52de 100644
--- a/contrib/urlize.pl
+++ b/contrib/urlize.pl
@@ -5,7 +5,20 @@
#
# A wrapper around Nagios plugins that provides a URL link in the output
#
-
+#
+# Pay close attention to quoting to ensure that the shell passes the
+# expected data to the plugin. For example, in:
+#
+# urlize http://example.com/ check_http -H example.com -r 'two words'
+#
+# the shell will remove the single quotes and urlize will see:
+#
+# urlize http://example.com/ check_http -H example.com -r two words
+#
+# You probably want:
+#
+# urlize http://example.com/ \"check_http -H example.com -r 'two words'\"
+#
($#ARGV < 1) && die "Incorrect arguments";
my $url = shift;