[Nagiosplug-devel] [ nagiosplug-Bugs-661916 ] urlize and urlize.pl break args with spaces

SourceForge.net noreply at sourceforge.net
Mon Jun 9 21:49:12 CEST 2003


Bugs item #661916, was opened at 2003-01-03 18:31
Message generated for change (Comment added) made by kdebisschop
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=661916&group_id=29880

Category: Argument proccessing
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Ben Johnson (darkstar101)
Assigned to: Karl DeBisschop (kdebisschop)
Summary: urlize and urlize.pl break args with spaces

Initial Comment:
Both urlize and urlize.pl break args with spaces.

For example

check_http --ssl -H my.server.com -u /ping/ping.jsp
--string="Ping JSP Monitorxxx"

returns status: 2, text: HTTP CRITICAL: string not found

urlize http://my.server.com/ping/ping.jsp check_http
--ssl -H my.server.com -u /ping/ping.jsp --string="Ping
JSP Monitorxxx"

returns status: 0, text:  <A
href="http://my.server.com/ping/ping.jsp">HTTP ok:
HTTP/1.1 200 OK - 0 second response time </A>

It looks like the quotes are being dropped and only the
first word in the --string parameter making it through...


----------------------------------------------------------------------

>Comment By: Karl DeBisschop (kdebisschop)
Date: 2003-06-10 00:48

Message:
Logged In: YES 
user_id=1671

Yes -- the quotes are dropped. But not by the scripts -- the
shell removes those quotes when passing the arguments to urlize.

You want:

urlize http://my.server.com/ping/ping.jsp 'check_http
--ssl -H my.server.com -u /ping/ping.jsp --string="Ping
JSP Monitorxxx"'

I have added a note to the help screen for urlize.c and I am
closing this bug report

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=661916&group_id=29880




More information about the Devel mailing list