mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Don't throw exception on bogus absolute path (http://xxx//blah)
This commit is contained in:
parent
3875486fbf
commit
00a660d019
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user