Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Merge branch 'feature/classic-cv-with-excludes-4390' into next
Browse files Browse the repository at this point in the history
fixes: #4390
  • Loading branch information
bb-Ricardo committed Sep 21, 2013
2 parents 62703fa + 7a4ad61 commit aa77900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cgi/extinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ void show_host_info(void) {
for (temp_customvar = temp_host->custom_variables; temp_customvar != NULL; temp_customvar = temp_customvar->next) {
if (check_exclude_customvar(temp_customvar) == FALSE) {
if (json_start == FALSE) printf(",");
printf(" { \"%s\": \"%s\" }\n", temp_customvar->variable_name, temp_customvar->variable_value);
printf(" { \"%s\": \"%s\" }\n", json_encode(temp_customvar->variable_name), json_encode(temp_customvar->variable_value));
json_start = FALSE;
}
}
Expand Down Expand Up @@ -1945,7 +1945,7 @@ void show_service_info(void) {
for (temp_customvar = temp_service->custom_variables; temp_customvar != NULL; temp_customvar = temp_customvar->next) {
if (check_exclude_customvar(temp_customvar) == FALSE) {
if (json_start == FALSE) printf(",");
printf(" { \"%s\": \"%s\" }\n", temp_customvar->variable_name, temp_customvar->variable_value);
printf(" { \"%s\": \"%s\" }\n", json_encode(temp_customvar->variable_name), json_encode(temp_customvar->variable_value));
json_start = FALSE;
}
}
Expand Down

0 comments on commit aa77900

Please sign in to comment.