1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
$NetBSD: patch-ai,v 1.1 2008/03/18 21:53:41 tonnerre Exp $
--- cgi/cmd.c.orig 2006-05-19 16:25:03.000000000 +0200
+++ cgi/cmd.c
@@ -380,6 +380,7 @@ int process_cgivars(void){
comment_author="";
else
strcpy(comment_author,variables[x]);
+ strip_html_brackets(comment_author);
}
/* we found the comment data */
@@ -395,6 +396,7 @@ int process_cgivars(void){
comment_data="";
else
strcpy(comment_data,variables[x]);
+ strip_html_brackets(comment_data);
}
/* we found the host name */
@@ -410,6 +412,7 @@ int process_cgivars(void){
host_name="";
else
strcpy(host_name,variables[x]);
+ strip_html_brackets(host_name);
}
/* we found the hostgroup name */
@@ -425,6 +428,7 @@ int process_cgivars(void){
hostgroup_name="";
else
strcpy(hostgroup_name,variables[x]);
+ strip_html_brackets(hostgroup_name);
}
/* we found the service name */
@@ -440,6 +444,7 @@ int process_cgivars(void){
service_desc="";
else
strcpy(service_desc,variables[x]);
+ strip_html_brackets(service_desc);
}
/* we found the servicegroup name */
@@ -455,6 +460,7 @@ int process_cgivars(void){
servicegroup_name="";
else
strcpy(servicegroup_name,variables[x]);
+ strip_html_brackets(servicegroup_name);
}
/* we got the persistence option for a comment */
|