Skip to content

Commit

Permalink
LPS-123761 Escape both as HTML and attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfopa authored and brianchandotcom committed Nov 24, 2020
1 parent 47f4300 commit f13194d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ RedirectManagementToolbarDisplayContext redirectManagementToolbarDisplayContext
>

<%
String sourceURL = RedirectUtil.getGroupBaseURL(themeDisplay) + StringPool.SLASH + redirectEntry.getSourceURL();
String sourceURL = HtmlUtil.escape(RedirectUtil.getGroupBaseURL(themeDisplay) + StringPool.SLASH + redirectEntry.getSourceURL());
%>

<span data-title="<%= sourceURL %>">
<%= HtmlUtil.escape(sourceURL) %>
<span data-title="<%= HtmlUtil.escapeAttribute(sourceURL) %>">
<%= sourceURL %>
</span>
</liferay-ui:search-container-column-text>

Expand All @@ -100,7 +100,7 @@ RedirectManagementToolbarDisplayContext redirectManagementToolbarDisplayContext
String destinationURL = HtmlUtil.escape(redirectEntry.getDestinationURL());
%>

<span data-title="<%= destinationURL %>">
<span data-title="<%= HtmlUtil.escapeAttribute(destinationURL) %>">
<%= destinationURL %>
</span>
</liferay-ui:search-container-column-text>
Expand Down

0 comments on commit f13194d

Please sign in to comment.