|
|
@ -303,6 +303,7 @@ public final class httpdFileHandler {
|
|
|
|
|
|
|
|
|
|
|
|
// check permission/granted access
|
|
|
|
// check permission/granted access
|
|
|
|
String authorization = (String) requestHeader.get(httpHeader.AUTHORIZATION);
|
|
|
|
String authorization = (String) requestHeader.get(httpHeader.AUTHORIZATION);
|
|
|
|
|
|
|
|
if (authorization != null && authorization.length() == 0) authorization = null;
|
|
|
|
String adminAccountBase64MD5 = switchboard.getConfig(httpd.ADMIN_ACCOUNT_B64MD5, "");
|
|
|
|
String adminAccountBase64MD5 = switchboard.getConfig(httpd.ADMIN_ACCOUNT_B64MD5, "");
|
|
|
|
|
|
|
|
|
|
|
|
int pos = path.lastIndexOf(".");
|
|
|
|
int pos = path.lastIndexOf(".");
|
|
|
@ -645,7 +646,6 @@ public final class httpdFileHandler {
|
|
|
|
if (authorization != null) {
|
|
|
|
if (authorization != null) {
|
|
|
|
serverLog.logInfo("HTTPD", "dynamic log-in for account 'admin' in http file handler for path '" + path + "' from host '" + clientIP + "'");
|
|
|
|
serverLog.logInfo("HTTPD", "dynamic log-in for account 'admin' in http file handler for path '" + path + "' from host '" + clientIP + "'");
|
|
|
|
Integer attempts = (Integer) serverCore.bfHost.get(clientIP);
|
|
|
|
Integer attempts = (Integer) serverCore.bfHost.get(clientIP);
|
|
|
|
if (attempts != null) try {Thread.sleep(1000 * attempts.intValue());} catch (InterruptedException e) {}
|
|
|
|
|
|
|
|
if (attempts == null)
|
|
|
|
if (attempts == null)
|
|
|
|
serverCore.bfHost.put(clientIP, new Integer(1));
|
|
|
|
serverCore.bfHost.put(clientIP, new Integer(1));
|
|
|
|
else
|
|
|
|
else
|
|
|
|