mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Skip evlauating special dist (like ., ..) in FileCache.
This commit is contained in:
parent
844dc44f24
commit
30900ebfb5
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user