diff options
author | ShadowNinja <shadowninja@minetest.net> | 2016-12-05 19:59:15 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-12-20 06:34:04 +0000 |
commit | 59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac (patch) | |
tree | d5717ed5f89542bcc26b4291ba193b2890763b01 /src/script/lua_api/l_mapgen.cpp | |
parent | 24edfb77afbb631cb83d26a095b609850f997e5c (diff) | |
download | minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.tar.gz minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.tar.bz2 minetest-59f84ca0a07e50dd5ce050d38ae1aeb529bd25ac.zip |
Mod security: Allow read-only access to all mod paths
Diffstat (limited to 'src/script/lua_api/l_mapgen.cpp')
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 281f68e46..bc1c32f03 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -1295,7 +1295,7 @@ int ModApiMapgen::l_create_schematic(lua_State *L) INodeDefManager *ndef = getServer(L)->getNodeDefManager(); const char *filename = luaL_checkstring(L, 4); - CHECK_SECURE_PATH_OPTIONAL(L, filename); + CHECK_SECURE_PATH(L, filename, true); Map *map = &(getEnv(L)->getMap()); Schematic schem; |