1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 21:34:41 +00:00
This commit is contained in:
fgenesis 2014-06-21 18:47:05 +02:00
commit 94cd430b84

View file

@ -675,7 +675,7 @@ static void safePath(lua_State *L, const std::string& path)
{ {
if(path[0] == '/') if(path[0] == '/')
{ {
if(!(dsq->mod.isActive() && path.substr(0, dsq->mod.getBaseModPath().length()) == dsq->mod.getBaseModPath()) if(!(dsq->mod.isActive() && path.substr(0, dsq->mod.getBaseModPath().length()) == dsq->mod.getBaseModPath()))
{ {
lua_pushliteral(L, "Absolute paths are not allowed"); lua_pushliteral(L, "Absolute paths are not allowed");
lua_error(L); lua_error(L);