summaryrefslogtreecommitdiff
path: root/net/nagios-base/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'net/nagios-base/patches/patch-aj')
-rw-r--r--net/nagios-base/patches/patch-aj60
1 files changed, 0 insertions, 60 deletions
diff --git a/net/nagios-base/patches/patch-aj b/net/nagios-base/patches/patch-aj
deleted file mode 100644
index aca84ca4e06..00000000000
--- a/net/nagios-base/patches/patch-aj
+++ /dev/null
@@ -1,60 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2008/03/18 21:53:41 tonnerre Exp $
-
---- cgi/extinfo.c.orig 2006-03-21 22:31:46.000000000 +0100
-+++ cgi/extinfo.c
-@@ -598,6 +598,7 @@ int process_cgivars(void){
- host_name=strdup(variables[x]);
- if(host_name==NULL)
- host_name="";
-+ strip_html_brackets(host_name);
- }
-
- /* we found the hostgroup name */
-@@ -611,6 +612,7 @@ int process_cgivars(void){
- hostgroup_name=strdup(variables[x]);
- if(hostgroup_name==NULL)
- hostgroup_name="";
-+ strip_html_brackets(hostgroup_name);
- }
-
- /* we found the service name */
-@@ -624,6 +626,7 @@ int process_cgivars(void){
- service_desc=strdup(variables[x]);
- if(service_desc==NULL)
- service_desc="";
-+ strip_html_brackets(service_desc);
- }
-
- /* we found the servicegroup name */
-@@ -637,6 +640,7 @@ int process_cgivars(void){
- servicegroup_name=strdup(variables[x]);
- if(servicegroup_name==NULL)
- servicegroup_name="";
-+ strip_html_brackets(servicegroup_name);
- }
-
- /* we found the sort type argument */
-@@ -989,9 +993,9 @@ void show_host_info(void){
-
- printf("<TR><TD CLASS='dataVar'>Host Status:</td><td CLASS='dataVal'><DIV CLASS='%s'>&nbsp;&nbsp;%s&nbsp;&nbsp;%s&nbsp;&nbsp;</DIV></td></tr>\n",bg_class,state_string,(temp_hoststatus->problem_has_been_acknowledged==TRUE)?"(Has been acknowledged)":"");
-
-- printf("<TR><TD CLASS='dataVar'>Status Information:</td><td CLASS='dataVal'>%s</td></tr>\n",(temp_hoststatus->plugin_output==NULL)?"":temp_hoststatus->plugin_output);
-+ printf("<TR><TD CLASS='dataVar'>Status Information:</td><td CLASS='dataVal'>%s</td></tr>\n",(temp_hoststatus->plugin_output==NULL)?"":html_encode(temp_hoststatus->plugin_output));
-
-- printf("<TR><TD CLASS='dataVar'>Performance Data:</td><td CLASS='dataVal'>%s</td></tr>\n",(temp_hoststatus->perf_data==NULL)?"":temp_hoststatus->perf_data);
-+ printf("<TR><TD CLASS='dataVar'>Performance Data:</td><td CLASS='dataVal'>%s</td></tr>\n",(temp_hoststatus->perf_data==NULL)?"":html_encode(temp_hoststatus->perf_data));
-
- printf("<TR><TD CLASS='dataVar'>Current Attempt:</TD><TD CLASS='dataVal'>%d/%d</TD></TR>\n",temp_hoststatus->current_attempt,temp_hoststatus->max_attempts);
-
-@@ -1299,9 +1303,9 @@ void show_service_info(void){
- }
- printf("<TR><TD CLASS='dataVar'>Current Status:</TD><TD CLASS='dataVal'><DIV CLASS='%s'>&nbsp;&nbsp;%s&nbsp;&nbsp;%s&nbsp;&nbsp;</DIV></TD></TR>\n",bg_class,state_string,(temp_svcstatus->problem_has_been_acknowledged==TRUE)?"(Has been acknowledged)":"");
-
-- printf("<TR><TD CLASS='dataVar'>Status Information:</TD><TD CLASS='dataVal'>%s</TD></TR>\n",(temp_svcstatus->plugin_output==NULL)?"":temp_svcstatus->plugin_output);
-+ printf("<TR><TD CLASS='dataVar'>Status Information:</TD><TD CLASS='dataVal'>%s</TD></TR>\n",(temp_svcstatus->plugin_output==NULL)?"":html_encode(temp_svcstatus->plugin_output));
-
-- printf("<TR><TD CLASS='dataVar'>Performance Data:</td><td CLASS='dataVal'>%s</td></tr>\n",(temp_svcstatus->perf_data==NULL)?"":temp_svcstatus->perf_data);
-+ printf("<TR><TD CLASS='dataVar'>Performance Data:</td><td CLASS='dataVal'>%s</td></tr>\n",(temp_svcstatus->perf_data==NULL)?"":html_encode(temp_svcstatus->perf_data));
-
- printf("<TR><TD CLASS='dataVar'>Current Attempt:</TD><TD CLASS='dataVal'>%d/%d</TD></TR>\n",temp_svcstatus->current_attempt,temp_svcstatus->max_attempts);
-