Fixed URL escape.
This commit is contained in:
parent
fdb379d213
commit
ba382f107c
2 changed files with 3 additions and 2 deletions
|
@ -151,7 +151,7 @@ public class ServiceListView
|
|||
}
|
||||
if (StringUtils.isNotBlank(service.getSoftwareLicenseWebpage()))
|
||||
{
|
||||
data.setAttribute("serviceListLine", index, "softwareLicenseLink", "href", service.getSoftwareLicenseWebpage());
|
||||
data.setAttribute("serviceListLine", index, "softwareLicenseLink", "href", XidynUtils.escapeXmlBlank(service.getSoftwareLicenseWebpage()));
|
||||
data.setAttribute("serviceListLine", index, "softwareLicenseLinkImg", "class", "");
|
||||
data.getIdData("serviceListLine", index, "softwareLicenseLinkImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ import fr.devinsy.xidyn.XidynException;
|
|||
import fr.devinsy.xidyn.data.DisplayMode;
|
||||
import fr.devinsy.xidyn.data.TagDataManager;
|
||||
import fr.devinsy.xidyn.presenters.PresenterUtils;
|
||||
import fr.devinsy.xidyn.utils.XidynUtils;
|
||||
|
||||
/**
|
||||
* The Class ServicePage.
|
||||
|
@ -192,7 +193,7 @@ public class ServicePage
|
|||
}
|
||||
if (StringUtils.isNotBlank(service.getSoftwareLicenseWebpage()))
|
||||
{
|
||||
data.setAttribute("softwareLicenseLink", "href", service.getSoftwareLicenseWebpage());
|
||||
data.setAttribute("softwareLicenseLink", "href", XidynUtils.escapeXmlBlank(service.getSoftwareLicenseWebpage()));
|
||||
data.setAttribute("softwareLicenseLinkImg", "class", "");
|
||||
data.getIdData("softwareLicenseLinkImg").getAttribute("class").setMode(DisplayMode.REPLACE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue