[Nagiosplug-checkins] CVS: nagiosplug/contrib urlize.pl,1.1.1.1,1.2
Karl DeBisschop
kdebisschop at users.sourceforge.net
Mon Jun 9 22:05:04 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/contrib
In directory sc8-pr-cvs1:/tmp/cvs-serv19173
Modified Files:
urlize.pl
Log Message:
add comment about shell quote removal to address https://sourceforge.net/tracker/index.php?func=detail&aid=661916&group_id=29880&atid=397597
Index: urlize.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/contrib/urlize.pl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** urlize.pl 28 Feb 2002 06:42:55 -0000 1.1.1.1
--- urlize.pl 10 Jun 2003 05:04:09 -0000 1.2
***************
*** 6,10 ****
# A wrapper around Nagios plugins that provides a URL link in the output
#
!
($#ARGV < 1) && die "Incorrect arguments";
my $url = shift;
--- 6,23 ----
# 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;
More information about the Commits
mailing list