Commit 29be576e authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed display of anonymous sessions.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6661 b35dd754-fafc-0310-a699-88a17e54d16e
parent d743894d
......@@ -106,7 +106,7 @@
</td>
<td>
<% String n = address.getNode(); %>
<% if (n == null || "".equals(n)) { %>
<% if (isAnonymous) { %>
<i> <fmt:message key="session.details.anonymous" /> </i> - <%= address.getResource()==null?"":StringUtils.escapeForXML(address.getResource()) %>
......
......@@ -33,7 +33,7 @@
<td width="10%" nowrap>
<% String name = sess.getAddress().getNode(); %>
<a href="session-details.jsp?jid=<%= URLEncoder.encode(sess.getAddress().toString(), "UTF-8") %>" title="<fmt:message key="session.row.cliked" />"
><%= ((name != null && !"".equals(name)) ? JID.unescapeNode(name): "<i>"+LocaleUtils.getLocalizedString("session.details.anonymous")+"</i>") %></a>
><%= ((!sessionManager.isAnonymousRoute(sess.getUsername())) ? JID.unescapeNode(name): "<i>"+LocaleUtils.getLocalizedString("session.details.anonymous")+"</i>") %></a>
</td>
<td width="15%" nowrap>
<%= StringUtils.escapeForXML(sess.getAddress().getResource()) %>
......
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