Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) "Did you mean:" will only be displayed if the list of suggested URLs is not empty. *) Removed <hr /> to make the "404 Unknown Host" error pag look like the other 404 error pages.
low012ae6d07bdb8ee
diff --git a/htroot/proxymsg/unknownHost.inc b/htroot/proxymsg/unknownHost.incindex d77fbcf23..6322793ed 100644--- a/htroot/proxymsg/unknownHost.inc+++ b/htroot/proxymsg/unknownHost.inc@@ -5,9 +5,10 @@}--></style>- <hr /><p>The server <b>#[hostName]#</b> could not be found.</p>+ #(showList)#::<p>Did you mean:</p>+ #(/showList)#<ul class="tagList">#{list}#<li><a class="hostPort" href="http://#[hostName]#:#[hostPort]##[hostPath]##[hostArgs]#">#[hostName]#</a></li>#{/list}#</ul>diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.javaindex 584d09c8e..b0e31f50d 100644--- a/source/de/anomic/http/httpdProxyHandler.java+++ b/source/de/anomic/http/httpdProxyHandler.java@@ -1492,7 +1492,14 @@ public final class httpdProxyHandler {hostNameCount++;}- detailedErrorMsgMap.put("list", hostNameCount);+ detailedErrorMsgMap.put("list", hostNameCount);++ if (hostNameCount != 0) {+ detailedErrorMsgMap.put("showList", 1);+ } else {+ detailedErrorMsgMap.put("showList", 0);+ }+return detailedErrorMsgMap;}