mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Merge branch 'v3.0' of https://github.com/webbukkit/dynmap.git into v3.0
This commit is contained in:
commit
d75116901b
@ -46,7 +46,11 @@ public class MapStorageResourceHandler extends AbstractHandler {
|
||||
int soff = 0, eoff;
|
||||
// We're handling this request
|
||||
baseRequest.setHandled(true);
|
||||
|
||||
if(core.getLoginRequired()
|
||||
&& request.getSession(true).getAttribute(LoginServlet.USERID_ATTRIB) == null){
|
||||
response.sendError(HttpStatus.UNAUTHORIZED_401);
|
||||
return;
|
||||
}
|
||||
if (path.charAt(0) == '/') soff = 1;
|
||||
eoff = path.indexOf('/', soff);
|
||||
if (soff < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user