Fix content path processing
This commit is contained in:
parent
31923974a6
commit
dbb088fa82
@ -56,7 +56,7 @@ extension URL {
|
|||||||
absoluteString.components(separatedBy: "/").forEach { part in
|
absoluteString.components(separatedBy: "/").forEach { part in
|
||||||
if part == ".." {
|
if part == ".." {
|
||||||
if !components.isEmpty {
|
if !components.isEmpty {
|
||||||
_ = components.dropLast()
|
_ = components.popLast()
|
||||||
} else {
|
} else {
|
||||||
components.append("..")
|
components.append("..")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user