Fixed generating urls in BrowsableFolderServeWebPage.

This commit is contained in:
Relintai 2024-01-02 10:56:10 +01:00
parent 2effb794fd
commit 20ec9e2043

View File

@ -132,9 +132,6 @@ void BrowsableFolderServeWebPage::evaluate_dir(const String &path, const bool to
folders.sort(); folders.sort();
files.sort(); files.sort();
//folders.sort_inc();
//files.sort_inc();
render_dir_page(dir_uri, folders, files, top_level); render_dir_page(dir_uri, folders, files, top_level);
} }
@ -143,6 +140,10 @@ void BrowsableFolderServeWebPage::render_dir_page(const String &dir_uri, const V
String uri = get_full_uri(false); String uri = get_full_uri(false);
if (uri == "/") {
uri = "";
}
b.div("file_list"); b.div("file_list");
{ {
if (!top_level) { if (!top_level) {