BugFix: configuration of downloadRoot cannot use absolute paths

Fix for http api `/index/api/downloadFile`
This commit is contained in:
xia-chu 2024-03-15 22:24:45 +08:00 committed by 夏楚
parent 50f65c4ba4
commit 69738ad24e

View File

@ -1879,7 +1879,7 @@ void installWebApi() {
std::set<std::string> ret; std::set<std::string> ret;
auto vec = toolkit::split(str, ";"); auto vec = toolkit::split(str, ";");
for (auto &item : vec) { for (auto &item : vec) {
auto root = File::absolutePath(item, "", true); auto root = File::absolutePath("", item, true);
ret.emplace(std::move(root)); ret.emplace(std::move(root));
} }
return ret; return ret;