Add support for WorldGuard on built-in server, fix getNodes() on new

ConfigurationNode class
This commit is contained in:
Mike Primm 2011-05-18 23:29:33 -05:00
parent a7ba34065b
commit 26f4f7d994
5 changed files with 95 additions and 5 deletions

View file

@ -161,6 +161,13 @@ public class HttpServerConnection extends Thread {
handler = entry.getValue();
break;
}
/* Wildcard handler for non-directory matches */
else if(key.endsWith("*") && request.path.startsWith(key.substring(0, key.length()-1))) { relativePath = request.path.substring(entry.getKey().length());
relativePath = request.path.substring(entry.getKey().length()-1);
relativePath = URLDecoder.decode(relativePath,"utf-8");
handler = entry.getValue();
break;
}
}
if (handler == null) {