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

git at icinga.org git at icinga.org
Wed Mar 30 13:29:38 CEST 2011


Module: icinga-core
Branch: r1.3
Commit: 9cc637db76a417986fe335696bf1a3f7b68dbde9
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=9cc637db76a417986fe335696bf1a3f7b68dbde9

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 3ed9dc7..38cc3d0 100644
--- a/Changelog
+++ b/Changelog
@@ -10,6 +10,7 @@ FIXES
 * classic ui: fixed csv export link to make it XSS save (IE) #1275
 * classic ui: statusmap.cgi: fixed XSS vulnerability #1281
 * classic ui: Fixing tooltip's in status.cgi, not showing messages with carriage return #1244
+* 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