diff -aur nagios-3.2.3-CVS-20101105/cgi/cgiutils.c nagios-3.2.3+Fixes/cgi/cgiutils.c
--- nagios-3.2.3-CVS-20101105/cgi/cgiutils.c 2010-10-23 11:57:45.000000000 +0200
+++ nagios-3.2.3+Fixes/cgi/cgiutils.c 2010-11-05 13:18:34.000000000 +0100
@@ -920,7 +920,7 @@
}
/* spaces are pluses */
- else if((char)input[x]<=(char)' '){
+ else if((char)input[x]==(char)' '){
str[y]='+';
y++;
}
diff -aur nagios-3.2.3-CVS-20101105/cgi/config.c nagios-3.2.3+Fixes/cgi/config.c
--- nagios-3.2.3-CVS-20101105/cgi/config.c 2010-10-28 14:31:40.000000000 +0200
+++ nagios-3.2.3+Fixes/cgi/config.c 2010-11-05 15:00:31.000000000 +0100
@@ -2377,10 +2377,7 @@
printf("
dangling whitespace: | \n",bg_class,bg_class);
printf("$ARG%u$=",bg_class,i);
for (c=command_args[i],j=0;c&&isspace(*c);c++,j++)
- /* TODO: As long as the hyperlinks change all whitespace into actual spaces,
- we'll output "[WS]" (whitespace) instead of "[SP]"(ace). */
- /* if ((*c)==' ') printf("[SP]"); */
- if ((*c)==' ') printf("[WS]");
+ if ((*c)==' ') printf("[SP]");
else if ((*c)=='\f') printf("[FF]");
else if ((*c)=='\n') printf("[LF]");
else if ((*c)=='\r') printf("[CR]");
@@ -2391,10 +2388,7 @@
for (;c&&((*c)!='\0')&&(j");
for (;c&&((*c)!='\0');c++)
- /* TODO: As long as the hyperlinks change all whitespace into actual spaces,
- we'll output "[WS]" (whitespace) instead of "[SP]"(ace). */
- /* if ((*c)==' ') printf("[SP]"); */
- if ((*c)==' ') printf("[WS]");
+ if ((*c)==' ') printf("[SP]");
else if ((*c)=='\f') printf("[FF]");
else if ((*c)=='\n') printf("[LF]");
else if ((*c)=='\r') printf("[CR]");
|