@@ -, +, @@ --- cgi/avail.c | 8 ++-- cgi/cgiutils.c | 24 +++++++------ cgi/cmd.c | 16 +++++----- cgi/histogram.c | 8 ++-- cgi/history.c | 4 +- cgi/notifications.c | 6 ++-- cgi/status.c | 88 +++++++++++++++++++++++++------------------------- cgi/statusmap.c | 2 +- cgi/statuswml.c | 40 +++++++++++----------- cgi/trends.c | 8 ++-- 10 files changed, 103 insertions(+), 101 deletions(-) --- a/cgi/avail.c +++ a/cgi/avail.c @@ -511,11 +511,11 @@ int main(int argc, char **argv){ if(display_type==DISPLAY_HOSTGROUP_AVAIL) printf("\n",hostgroup_name); if(display_type==DISPLAY_HOST_AVAIL || display_type==DISPLAY_SERVICE_AVAIL) - printf("\n",host_name); + printf("\n",url_encode(host_name)); if(display_type==DISPLAY_SERVICE_AVAIL) printf("\n",svc_description); if(display_type==DISPLAY_SERVICEGROUP_AVAIL) - printf("\n",servicegroup_name); + printf("\n",url_encode(servicegroup_name)); printf("\n",(assume_initial_states==TRUE)?"yes":"no"); printf("\n",(assume_state_retention==TRUE)?"yes":"no"); @@ -646,11 +646,11 @@ int main(int argc, char **argv){ if(display_type==DISPLAY_HOSTGROUP_AVAIL) printf("\n",hostgroup_name); if(display_type==DISPLAY_HOST_AVAIL || display_type==DISPLAY_SERVICE_AVAIL) - printf("\n",host_name); + printf("\n",url_encode(host_name)); if(display_type==DISPLAY_SERVICE_AVAIL) printf("\n",svc_description); if(display_type==DISPLAY_SERVICEGROUP_AVAIL) - printf("\n",servicegroup_name); + printf("\n",url_encode(servicegroup_name)); printf("
Author (Your Name): | "); - printf("",comment_author); + printf("",url_encode(comment_author)); printf(" |
Comment: | "); - printf("",comment_data); + printf("",url_encode(comment_data)); printf(" |
Author (Your Name): | "); - printf("",comment_author); + printf("",url_encode(comment_author)); printf(" |
Comment: | "); - printf("",comment_data); + printf("",url_encode(comment_data)); printf(" |
Author (Your Name): | "); - printf("",comment_author); + printf("",url_encode(comment_author)); printf(" |
Comment: | "); - printf("",comment_data); + printf("",url_encode(comment_data)); printf(" |
Author (Your Name): | "); - printf("",comment_author); + printf("",url_encode(comment_author)); printf(" |
Comment: | "); - printf("",comment_data); + printf("",url_encode(comment_data)); printf(" |