File nagios-fix_encoding_trends.cgi.patch of Package nagios.import4839

Index: cgi/getcgi.c
===================================================================
--- cgi/getcgi.c.orig
+++ cgi/getcgi.c
@@ -96,6 +96,9 @@
 			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