mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
Don't include empty segments in canonicalized paths.
This makes "/foo/" and "/foo" both resolve to "/foo".
This commit is contained in:
@@ -26,7 +26,8 @@ bool FileSystemPath::canonicalize(bool resolveSymbolicLinks)
|
|||||||
canonicalParts.takeLast();
|
canonicalParts.takeLast();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
canonicalParts.append(part);
|
if (!part.isEmpty())
|
||||||
|
canonicalParts.append(part);
|
||||||
}
|
}
|
||||||
if (canonicalParts.isEmpty()) {
|
if (canonicalParts.isEmpty()) {
|
||||||
m_string = "/";
|
m_string = "/";
|
||||||
|
|||||||
Reference in New Issue
Block a user