orbiter 18 years ago
parent 511dcbb172
commit 6758beae9c

@ -601,13 +601,14 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
requestHeader.put(httpHeader.CONNECTION_PROP_PATH, path); requestHeader.put(httpHeader.CONNECTION_PROP_PATH, path);
// in case that there are no args given, args = null or empty hashmap // in case that there are no args given, args = null or empty hashmap
Object tmp = invokeServlet(targetClass, requestHeader, args); Object tmp = invokeServlet(targetClass, requestHeader, args);
if(tmp instanceof servletProperties){ if (tp == null) {
// if no args given, then tp will be an empty Hashtable object (not null)
tp = new servletProperties();
} else if (tmp instanceof servletProperties) {
tp = (servletProperties) tmp; tp = (servletProperties) tmp;
} else { } else {
tp = new servletProperties((serverObjects) tmp); tp = new servletProperties((serverObjects) tmp);
} }
// if no args given , then tp will be an empty Hashtable object (not null)
if (tp == null) tp = new servletProperties();
// check if the servlets requests authentification // check if the servlets requests authentification
if (tp.containsKey(servletProperties.ACTION_AUTHENTICATE)) { if (tp.containsKey(servletProperties.ACTION_AUTHENTICATE)) {
// handle brute-force protection // handle brute-force protection

Loading…
Cancel
Save