mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Fix ScriptApiSecurity::checkPath mangling non-existent paths
bug introduced in 1c1c97cbd1
This commit is contained in:
parent
9982c56373
commit
294a30e445
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ bool ScriptApiSecurity::checkPath(lua_State *L, const char *path,
|
|||
// by the operating system anyways.
|
||||
return false;
|
||||
}
|
||||
removed.append(component).append(removed.empty() ? "" : DIR_DELIM + removed);
|
||||
removed = component + (removed.empty() ? "" : DIR_DELIM + removed);
|
||||
abs_path = fs::AbsolutePath(cur_path);
|
||||
}
|
||||
if (abs_path.empty())
|
||||
|
|
Loading…
Add table
Reference in a new issue