This commit is contained in:
ineed bots 2024-05-12 11:43:16 -06:00
parent 7fccea636f
commit a3a7b8847c

View File

@ -62,6 +62,7 @@ namespace fileio
game::Scr_ParamError(0, game::SCRIPTINSTANCE_SERVER, utils::string::va("Invalid path: %s", path_.c_str()));
}
// its sandboxed, but what about symlinks?
return path.starts_with("scriptdata/") ? path : "scriptdata/" + path;
}