[PATCH] (Variables encoded twice) Fix bug when change time periods on trends.cgi and histogram.cgi

Pedro Lucas Borba Pereira pedro.pereira at camara.gov.br
Sat Sep 6 16:50:53 CEST 2008


Andreas Ericsson wrote:
 
>Pedro Lucas Borba Pereira wrote:
>> Hi people,
>> 
>> My names is Pedro Lucas and I work for Brazilian Government with Nagios.
>> 
>> I found a error when generate reports with trends.cgi and histogram.cgi like 
>> Brian Murphy, when change the time periods and click on Update button a 
>> message of error is displayed:
>> "It appears as though you are not authorized to view information for the 
>> specified service..."
>> 
>> The cause of this error is that trends.cgi and histogram.cgi are using the
>> function url_encode to encode a variable already is encoded by other cgi or by 
>> it self.
>> 
>> In this patchs I just removed url_encode of variable "svc_description" and 
>> then I get it work.
>> 
>> Annexed following the patches.
>> 

>What version of Nagios are these patches made against?

Sorry I forgot to mentoin it. =)

This patchs were made against CVS HEAD code as the FAQ recommends, but the problem was seen in versions 3.0.2 and 3.0.3 of Nagios.

>I know several similar patches have been sent to the nagios-devel@ list, so Ethan may well have
>something like this in his tree already.

Regards 

Pedro Lucas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3619 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080906/45d27cc9/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list