[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: cmd.cgi: acknowledgement multiline comment -> command not being processed #1257

git at icinga.org git at icinga.org
Thu Mar 10 12:43:06 CET 2011


Module: icinga-core
Branch: mfriedrich/core
Commit: dea984dbf01118ccef6d868f10d18c7b1414ea30
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=dea984dbf01118ccef6d868f10d18c7b1414ea30

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Tue Mar  8 11:00:13 2011 +0100

cmd.cgi: acknowledgement multiline comment -> command not being processed #1257

Fixes #1257

---

 Changelog |    1 +
 cgi/cmd.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index f37ec5a..14a250e 100644
--- a/Changelog
+++ b/Changelog
@@ -17,6 +17,7 @@ FIXES
 
 * classic ui: Fixing tooltip's in status.cgi, not showing messages with carriage return #1244
 * classic ui: fixed csv export link to make it XSS save (IE) #1275
+* classic ui: cmd.cgi: acknowledgement multiline comment -> command not being processed #1257
 
 
 1.3.0 - 16/02/2011
diff --git a/cgi/cmd.c b/cgi/cmd.c
index 966ca09..11bc6a2 100644
--- a/cgi/cmd.c
+++ b/cgi/cmd.c
@@ -2667,7 +2667,7 @@ void clean_comment_data(char *buffer){
 	y=(int)strlen(buffer);
 
 	for(x=0;x<y;x++){
-		if(buffer[x]==';' || buffer[x]=='\n')
+		if(buffer[x]==';' || buffer[x]=='\n' || buffer[x]=='\r' )
 			buffer[x]=' ';
 	}
 





More information about the icinga-checkins mailing list