Skip evlauating special dist (like ., ..) in FileCache.

This commit is contained in:
Relintai 2022-06-27 15:04:44 +02:00
parent 844dc44f24
commit 30900ebfb5

View File

@ -50,6 +50,11 @@ void FileCache::wwwroot_evaluate_dir(const String &path, const bool should_exist
String f = da->get_next();
while (f != String()) {
if (f == "." || f == "..") {
f = da->get_next();
continue;
}
if (!da->current_is_dir()) {
String np = path + "/" + f;
np = np.substr(wwwroot.size(), np.size() - wwwroot.size());