diff options
Diffstat (limited to 'web/api')
-rw-r--r-- | web/api/web_api_v1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index 072daea2ae..afbf88b4d5 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -780,7 +780,7 @@ inline void host_labels2json(RRDHOST *host, BUFFER *wb, size_t indentation) { buffer_strcat(wb, tabs); char value[CONFIG_MAX_VALUE * 2 + 1]; - escape_json_string(value, label->value, CONFIG_MAX_VALUE * 2); + sanitize_json_string(value, label->value, CONFIG_MAX_VALUE * 2); buffer_sprintf(wb, "\"%s\": \"%s\"", label->key, value); count++; |