Skip to content

Commit

Permalink
LPS-123823 Escape vocabulary title
Browse files Browse the repository at this point in the history
  • Loading branch information
victorg1991 authored and brianchandotcom committed Nov 23, 2020
1 parent 91812e5 commit 9a9403c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>

<%@ page import="com.liferay.portal.kernel.util.GetterUtil" %><%@
page import="com.liferay.portal.kernel.util.HtmlUtil" %><%@
page import="com.liferay.portal.kernel.util.Validator" %>
<%@ page import="java.util.List" %><%@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ List<Map<String, Object>> vocabularies = (List<Map<String, Object>>)data.get("vo
<div class="form-group" id="<%= "namespace_assetCategoriesSelector_" + vocabularyId %>">
<c:if test='<%= Validator.isNotNull(vocabulary.get("title")) %>'>
<label>
<%= vocabulary.get("title") %>
<%= HtmlUtil.escape(GetterUtil.getString(vocabulary.get("title"))) %>

<c:if test='<%= GetterUtil.getBoolean(vocabulary.get("required")) %>'>
<span class="reference-mark">
Expand Down

0 comments on commit 9a9403c

Please sign in to comment.