LibURL+LibWeb: Remove leading slash when converting url to path

...on Windows
This commit is contained in:
stasoid 2025-02-14 15:31:43 +05:00 committed by Andrew Kaster
parent 5ff32fb090
commit 32ddeb82d6
Notes: github-actions[bot] 2025-04-11 01:05:22 +00:00
5 changed files with 18 additions and 5 deletions

View file

@ -45,7 +45,7 @@ ErrorOr<String> load_error_page(URL::URL const& url, StringView error_message)
ErrorOr<String> load_file_directory_page(URL::URL const& url)
{
// Generate HTML contents entries table
auto lexical_path = LexicalPath(URL::percent_decode(url.serialize_path()));
auto lexical_path = LexicalPath(url.file_path());
Core::DirIterator dt(lexical_path.string(), Core::DirIterator::Flags::SkipParentAndBaseDir);
Vector<ByteString> names;
while (dt.has_next())