[icinga-checkins] icinga.org: icinga-core/test/cgis: fixed an error when sending command from status.cgi

git at icinga.org git at icinga.org
Mon Jun 20 20:07:55 CEST 2011


Module: icinga-core
Branch: test/cgis
Commit: 9233726678fe4180ea4d959876df3dda8373d19b
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=9233726678fe4180ea4d959876df3dda8373d19b

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Mon Jun 20 20:05:20 2011 +0200

fixed an error when sending command from status.cgi

* data doesn't need to be url_encoded anymore sending it POST wise.

---

 cgi/status.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/cgi/status.c b/cgi/status.c
index 2184cd4..5cc25e8 100644
--- a/cgi/status.c
+++ b/cgi/status.c
@@ -1815,8 +1815,7 @@ void show_service_detail(void){
 
 			/* Checkbox for service(s) */
 			if (is_authorized_for_read_only(&current_authdata)==FALSE)
-				printf("<TD CLASS='status%s' nowrap align='center'><input onclick=\"isValidForSubmit('tableform');\" type='checkbox' name='hostservice' value='%s^",status_bg_class,url_encode(temp_status->host_name));
-				printf("%s'></TD>\n",url_encode(temp_status->svc_description));
+				printf("<TD CLASS='status%s' nowrap align='center'><input onclick=\"isValidForSubmit('tableform');\" type='checkbox' name='hostservice' value='%s^%s'></TD>\n",status_bg_class,temp_status->host_name,temp_status->svc_description);
 
 			if(enable_splunk_integration==TRUE)
 				display_splunk_service_url(temp_service);
@@ -2215,7 +2214,7 @@ void show_host_detail(void){
 
 				/* Checkbox for host(s) */
 				if (is_authorized_for_read_only(&current_authdata)==FALSE)
-					printf("<TD CLASS='status%s' valign='center' align='center'><input onClick=\"isValidForSubmit('tableform');\" type='checkbox' name='host' value='%s'></TD>\n",status_bg_class,url_encode(temp_statusdata->host_name));
+					printf("<TD CLASS='status%s' valign='center' align='center'><input onClick=\"isValidForSubmit('tableform');\" type='checkbox' name='host' value='%s'></TD>\n",status_bg_class,temp_statusdata->host_name);
 
 
 





More information about the icinga-checkins mailing list