[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
Fri Sep 5 23:17:55 CEST 2008
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080905/8b5e6a06/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trends.patch
Type: text/x-patch
Size: 746 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080905/8b5e6a06/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: histogram.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080905/8b5e6a06/attachment-0001.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