From 186244c18fca57c74d86f7ce0e6061f24b3c3ab8 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 26 Nov 2020 06:34:43 +0100 Subject: [PATCH] Fixed escape software name in service list. --- src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java index d62afaa..ad729a2 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java @@ -140,9 +140,9 @@ public class ServiceListView } // - data.setContent("softwareName", StringUtils.defaultIfBlank(service.getSoftwareName(), "n/a")); - data.setContent("softwareVersion", StringUtils.defaultIfBlank(service.getSoftwareVersion(), "n/a")); - data.setContent("softwareLicenseName", StringUtils.defaultIfBlank(service.getSoftwareLicenseName(), "n/a")); + data.setEscapedContent("softwareName", StringUtils.defaultIfBlank(service.getSoftwareName(), "n/a")); + data.setEscapedContent("softwareVersion", StringUtils.defaultIfBlank(service.getSoftwareVersion(), "n/a")); + data.setEscapedContent("softwareLicenseName", StringUtils.defaultIfBlank(service.getSoftwareLicenseName(), "n/a")); if (StringUtils.isNotBlank(service.getSoftwareWebsite())) { data.setEscapedAttribute("serviceListLine", index, "softwareWebsiteLink", "href", service.getSoftwareWebsite());