絶対パスを正常に解決できるように

This commit is contained in:
ろむねこ 2024-01-22 11:50:29 +09:00
parent c4e10b9487
commit caf3a0dd34
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -29,6 +29,7 @@ public class PublicPath {
private void resolveInternal(String path) { private void resolveInternal(String path) {
if (path.startsWith("/")) { if (path.startsWith("/")) {
this.path.clear(); this.path.clear();
this.path.add("/");
} else { } else {
if (path.equals("..")) { if (path.equals("..")) {
this.path.remove(this.path.size() - 1); this.path.remove(this.path.size() - 1);