From 1102c08b3e235d197a38a0df6925acaa32878ba7 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Wed, 29 Jun 2011 14:16:12 -0500 Subject: [PATCH 1/2] Don't throw exception on bogus absolute path (http://xxx//blah) --- src/main/java/org/dynmap/web/handlers/FilesystemHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/dynmap/web/handlers/FilesystemHandler.java b/src/main/java/org/dynmap/web/handlers/FilesystemHandler.java index d20b217c..ec22ad3a 100644 --- a/src/main/java/org/dynmap/web/handlers/FilesystemHandler.java +++ b/src/main/java/org/dynmap/web/handlers/FilesystemHandler.java @@ -27,6 +27,7 @@ public class FilesystemHandler extends FileHandler { } @Override protected InputStream getFileInput(String path, HttpRequest request, HttpResponse response) { + if(path == null) return null; path = getNormalizedPath(path); /* Resolve out relative stuff - nothing allowed above webroot */ File file = new File(root, path); if(!file.isFile()) From 1c32aebff9bcda3a838497700b3cee8bb56076c9 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Wed, 29 Jun 2011 21:10:43 -0500 Subject: [PATCH 2/2] Set to 0.19.1 - need bug fix release --- pom.xml | 2 +- src/main/resources/plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 62ac6cc7..efd93b18 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.dynmap dynmap - 0.20 + 0.19.1 dynmap UTF-8 diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b63efc54..ba351ca1 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: dynmap main: org.dynmap.DynmapPlugin -version: "0.20" +version: "0.19.1" authors: [FrozenCow, mikeprimm, zeeZ] softdepend: [Permissions] commands: