support .. as well
This commit is contained in:
@@ -40,10 +40,10 @@ function MBTiles(uri, callback) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (uri.hostname === '.') {
|
||||
if (uri.hostname === '.' || uri.hostname = '..') {
|
||||
uri.pathname = uri.hostname + uri.pathname;
|
||||
delete uri.hostname;
|
||||
delete uri.host;
|
||||
uri.pathname = '.' + uri.pathname;
|
||||
}
|
||||
|
||||
this.filename = uri.pathname;
|
||||
|
||||
Reference in New Issue
Block a user