Fix content path processing

This commit is contained in:
Christoph Hagen 2022-12-10 22:40:35 +01:00
parent 31923974a6
commit dbb088fa82

View File

@ -56,7 +56,7 @@ extension URL {
absoluteString.components(separatedBy: "/").forEach { part in
if part == ".." {
if !components.isEmpty {
_ = components.dropLast()
_ = components.popLast()
} else {
components.append("..")
}