File nagios-fix_encoding_trends.cgi.patch of Package nagios

---
 cgi/getcgi.c |    3 +++
 1 file changed, 3 insertions(+)

Index: nagios/cgi/getcgi.c
===================================================================
--- nagios.orig/cgi/getcgi.c
+++ nagios/cgi/getcgi.c
@@ -96,6 +96,9 @@ void unescape_cgi_input(char *input) {
 			break;
 		else if(input[x] == '%') {
 			input[y] = hex_to_char(&input[x + 1]);
+                        if (input[y] == '+') {
+                          input[y] = ' ';
+                          }
 			x += 2;
 			}
 		else
openSUSE Build Service is sponsored by