Commit 53e06202 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed security vulnerabilities. JM-1506

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10939 b35dd754-fafc-0310-a699-88a17e54d16e
parent 347e9845
...@@ -185,18 +185,18 @@ ...@@ -185,18 +185,18 @@
<td width="45%" valign="middle"> <td width="45%" valign="middle">
<% if (room.getName().equals(room.getNaturalLanguageName())) { %> <% if (room.getName().equals(room.getNaturalLanguageName())) { %>
<a href="muc-room-edit-form.jsp?roomJID=<%= URLEncoder.encode(room.getJID().toBareJID(), "UTF-8") %>"title="<fmt:message key="global.click_edit" />"> <a href="muc-room-edit-form.jsp?roomJID=<%= URLEncoder.encode(room.getJID().toBareJID(), "UTF-8") %>"title="<fmt:message key="global.click_edit" />">
<%= room.getName() %> <%= StringUtils.escapeHTMLTags(room.getName()) %>
</a> </a>
<% } <% }
else { %> else { %>
<a href="muc-room-edit-form.jsp?roomJID=<%= URLEncoder.encode(room.getJID().toBareJID(), "UTF-8") %>"title="<fmt:message key="global.click_edit" />"> <a href="muc-room-edit-form.jsp?roomJID=<%= URLEncoder.encode(room.getJID().toBareJID(), "UTF-8") %>"title="<fmt:message key="global.click_edit" />">
<%= room.getNaturalLanguageName() %> (<%= room.getName() %>) <%= StringUtils.escapeHTMLTags(room.getNaturalLanguageName()) %> (<%= StringUtils.escapeHTMLTags(room.getName()) %>)
</a> </a>
<% } %> <% } %>
</td> </td>
<td width="45%" valign="middle"> <td width="45%" valign="middle">
<% if (!"".equals(room.getDescription())) { %> <% if (!"".equals(room.getDescription())) { %>
<%= room.getDescription() %> <%= StringUtils.escapeHTMLTags(room.getDescription()) %>
<% } <% }
else { %> else { %>
&nbsp; &nbsp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment