[PATCH] (Variables encoded twice) Fix bug when change time periods on trends.cgi and histogram.cgi
Andreas Ericsson
ae at op5.se
Sat Sep 6 10:34:31 CEST 2008
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? 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.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------------------------
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=/
More information about the Developers
mailing list