mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 07:11:52 +00:00
LibURL+LibWeb: Remove leading slash when converting url to path
...on Windows
This commit is contained in:
parent
5ff32fb090
commit
32ddeb82d6
Notes:
github-actions[bot]
2025-04-11 01:05:22 +00:00
Author: https://github.com/stasoid
Commit: 32ddeb82d6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3569
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/shannonbooth ✅
5 changed files with 18 additions and 5 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue