mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 14:09:06 +00:00
oops
This commit is contained in:
parent
fceb1d1bcc
commit
94cd430b84
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ static void safePath(lua_State *L, const std::string& path)
|
|||
{
|
||||
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_error(L);
|
||||
|
|
Loading…
Reference in a new issue