mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
絶対パスを正常に解決できるように
This commit is contained in:
parent
b05ee22c29
commit
c4e10b9487
|
@ -27,10 +27,16 @@ public class PublicPath {
|
|||
}
|
||||
|
||||
private void resolveInternal(String path) {
|
||||
if (path.equals("..")) {
|
||||
this.path.remove(this.path.size() - 1);
|
||||
if (path.startsWith("/")) {
|
||||
this.path.clear();
|
||||
} else {
|
||||
add(path);
|
||||
if (path.equals("..")) {
|
||||
this.path.remove(this.path.size() - 1);
|
||||
} else if (path.equals(".")) {
|
||||
// do nothing
|
||||
} else {
|
||||
this.path.add(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user