Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed authorization case
orbiterca488e03f510
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.javaindex 90f0231ba..6a8aa4968 100644--- a/source/de/anomic/http/httpd.java+++ b/source/de/anomic/http/httpd.java@@ -294,13 +294,13 @@ public final class httpd implements serverHandler {}public static int staticAdminAuthenticated(String authorization, serverSwitch sw){- if(authorization==null) return 1;+ if (authorization==null) return 1;//if (authorization.length() < 6) return 1; // no authentication information given//authorization = authorization.trim().substring(6);String adminAccountBase64MD5 = sw.getConfig(ADMIN_ACCOUNT_B64MD5, "");if (adminAccountBase64MD5.length() == 0) return 2; // no passwrd storedif (adminAccountBase64MD5.equals(serverCodings.encodeMD5Hex(authorization))) return 4; // hard-authenticated, all ok- return 0;+ return 1;}private boolean handleServerAuthentication(httpHeader header) throws IOException {