[Pkg-nagios-devel] Bug#495052: Acknowledgement (nagios3: Bug in url encode/decode in trends.cgi?)

Max Kosmach max at tcen.ru
Thu Aug 14 10:35:22 UTC 2008


Hi

Dirty but working patch:

diff -u nagios3-3.0.3.orig/cgi/getcgi.c nagios3-3.0.3/cgi/getcgi.c
--- nagios3-3.0.3.orig/cgi/getcgi.c     2006-05-15 20:59:24.000000000 +0400
+++ nagios3-3.0.3/cgi/getcgi.c  2008-08-14 14:31:47.000000000 +0400
@@ -97,6 +97,9 @@
                 else if(input[x]=='%'){
                         input[y]=hex_to_char(&input[x+1]);
                         x+=2;
+                       if (input[y]=='+'){
+                               input[y]=' ';
+                               }
                         }
                 else
                         input[y]=input[x];


-- 
With MBR
Max
CCSA/CCSE





More information about the Pkg-nagios-devel mailing list