mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-07 04:21:48 +02: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();
|
String f = da->get_next();
|
||||||
|
|
||||||
while (f != String()) {
|
while (f != String()) {
|
||||||
|
if (f == "." || f == "..") {
|
||||||
|
f = da->get_next();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!da->current_is_dir()) {
|
if (!da->current_is_dir()) {
|
||||||
String np = path + "/" + f;
|
String np = path + "/" + f;
|
||||||
np = np.substr(wwwroot.size(), np.size() - wwwroot.size());
|
np = np.substr(wwwroot.size(), np.size() - wwwroot.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user