Author: nextgens
Date: 2007-11-27 23:24:26 +0000 (Tue, 27 Nov 2007)
New Revision: 15999
Modified:
trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
Fix #1892: activelinks have two slashes
Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java 2007-11-27
23:21:46 UTC (rev 15998)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java 2007-11-27
23:24:26 UTC (rev 15999)
@@ -75,8 +75,10 @@
HTMLNode row = table.addChild("tr");
HTMLNode cell = row.addChild("td", "style", "border: none");
if (item.hasAnActivelink()) {
+ String initialKey = item.getKey();
+ String key = '/' + initialKey + (initialKey.endsWith("/") ?
"" : "/") + "activelink.png";
cell.addChild("a", "href", '/' +
item.getKey()).addChild("img", new String[]{"src", "height", "width", "alt",
"title"},
- new String[]{'/' + item.getKey() +
"/activelink.png", "36px", "108px", "activelink", item.getDescription()});
+ new String[]{ key, "36px", "108px", "activelink",
item.getDescription()});
} else {
cell.addChild("#", " ");
}