URL Escaping in action_url -- Bug?

Don Tetreault don.tetreault at celero.ca
Wed Mar 25 00:20:05 CET 2009


Don Tetreault <Don.Tetreault <at> celero.ca> writes:

[snip]
> -----Original Message-----
> From: Thomas Guyot-Sionnest [mailto:dermoth <at> aei.ca] 
> Sent: March 18, 2009 8:15 PM
> To: Nagios Developers List
> Subject: Re: [Nagios-devel] URL Escaping in action_url -- Bug?
[snip]

> Is that on the CGI page or when you use the url in commands, i.e. in
> notification emails? AKAIK it shouldn't be a problem in a web page as
> browsers properly encode URLs already. It can be a problem in text
> emails where the email client is expected to detect and enable links.
> 
> I reported a problem in 3.0.1 - url was not escaped at all. Although it
> should have been fixed in 3.0.2, I preferred to stick with 3.0.1
> (actually a CVS version with many fixes) as the fix was possibly
> affecting many other macro processing and I feared it could trigger more
> bugs.
> 
> If you're having a problem using the url in commands, I would be very
> interested to assist you (can be done in private).
> 
> - --
> Thomas
[snip]

Sorry for the previous top-post; way too many years in an Outlook environment
and I was thinking in email mode.

Anyway, here's the relevant lines of output:

Version 2.8
<TD align=center valign=center><A
HREF='/nagios_ext/cgi-bin/disk.cgi?h=bk02&s=Disk+--+System'
TARGET='_blank'><IMG SRC='/nagios/images/action.gif' BORDER=0 WIDTH=20
HEIGHT=20 ALT='Perform Extra Service Actions' TITLE='Perform Extra
Service Actions'></A></TD>
 
Version 3.0.6
<TD align=center valign=center><A
HREF='/nagios_ext/cgi-bin/disk.cgi?h=bk02&s=Disk -- System'
TARGET='_blank'><IMG SRC='/nagios/images/action.gif' BORDER=0 WIDTH=20
HEIGHT=20 ALT='Perform Extra Service Actions' TITLE='Perform Extra
Service Actions'></A></TD>

Note that the HREF strings contains spaces in the 3.0.6 instance. 

Don



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com




More information about the Developers mailing list