diff --git a/model/src/main/java/one/nem/lacerta/model/PublicPath.java b/model/src/main/java/one/nem/lacerta/model/PublicPath.java index 47f68ca7..a5253f1d 100644 --- a/model/src/main/java/one/nem/lacerta/model/PublicPath.java +++ b/model/src/main/java/one/nem/lacerta/model/PublicPath.java @@ -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); + } } }