i2ptunnel: Truncate long client destinations (ticket #581)

This commit is contained in:
str4d
2012-10-24 02:30:19 +00:00
parent fc461931bd
commit 211128f128
2 changed files with 6 additions and 1 deletions

View File

@@ -285,7 +285,9 @@
</label>
<div class="text">
<% String cdest = indexBean.getClientDestination(curClient);
if (cdest.length() > 0) {
if (cdest.length() < 70) { // Probably a B64 (a B32 is 60 chars) so truncate
%><%=cdest.substring(0, 45)%>&hellip;<%=cdest.substring(cdest.length() - 15, cdest.length())%><%
} else if (cdest.length() > 0) {
%><%=cdest%><%
} else {
%><i><%=intl._("none")%></i><%

View File

@@ -1,3 +1,6 @@
2012-10-24 str4d
* i2ptunnel: Truncate long client destinations (ticket #581)
2012-10-21 zzz
* Watchdog: Don't dump threads too often (ticket #519)