minetest/src/script/cpp_api
ShadowNinja 0f0502109e Security: Fix resolving of some relative paths
Trying to resolve a path with RemoveRelativePathComponents that can't
be resolved without leaving leading parent components (e.g. "../worlds/foo"
or "bar/../../worlds/foo") will fail.  To work around this, we leave
the relative components and simply remove the trailing components one
at a time, and bail out when we find a parent component.  This will
still fail for paths like "worlds/foo/noexist/../auth.txt" (the path
before the last parent component must not exist), but this is fine
since you won't be able to open a file with a path like that anyways
(the O.S. will determine that the path doesn't exist.
Try `cat /a/../etc/passwd`).
2016-12-20 17:17:38 +10:00
..
CMakeLists.txt Add mod security 2015-05-16 18:32:31 -04:00
s_async.cpp use unordered containers where possible (patch 4 on X) 2016-10-06 22:37:26 +02:00
s_async.h use unordered containers where possible (patch 4 on X) 2016-10-06 22:37:26 +02:00
s_base.cpp Fix C++11 compilability 2016-01-23 05:45:29 +01:00
s_base.h Add minetest.register_lbm() to run code on block load only 2016-03-07 19:54:26 +01:00
s_entity.cpp Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
s_entity.h Fix class/struct forward declaration inconsistencies (good on ya, MSVC) 2013-06-06 22:57:38 +02:00
s_env.cpp Emergeblocks: Fix occasional crash 2016-10-16 01:13:16 +01:00
s_env.h s_env.{cpp, h} cleanups 2016-03-07 19:54:26 +01:00
s_internal.h Fix C++11 compilability 2016-01-23 05:45:29 +01:00
s_inventory.cpp Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
s_inventory.h Fix class/struct forward declaration inconsistencies (good on ya, MSVC) 2013-06-06 22:57:38 +02:00
s_item.cpp Add on_secondary_use when right clicking an item in the air 2015-12-02 02:18:44 +00:00
s_item.h Add on_secondary_use when right clicking an item in the air 2015-12-02 02:18:44 +00:00
s_mainmenu.cpp Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
s_mainmenu.h Optional reconnect functionality 2015-07-23 07:38:13 +02:00
s_node.cpp Make plantlike drawtype more fun 2016-08-26 05:26:08 +01:00
s_node.h Replace instances of std::map<std::string, std::string> with StringMap 2015-05-19 16:10:49 -04:00
s_nodemeta.cpp Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
s_nodemeta.h Fix class/struct forward declaration inconsistencies (good on ya, MSVC) 2013-06-06 22:57:38 +02:00
s_player.cpp Server: Add reason for leave to `on_leaveplayer` callbacks 2016-06-11 04:17:04 +01:00
s_player.h Server: Add reason for leave to `on_leaveplayer` callbacks 2016-06-11 04:17:04 +01:00
s_security.cpp Security: Fix resolving of some relative paths 2016-12-20 17:17:38 +10:00
s_security.h Mod security: Allow read-only access to all mod paths 2016-12-20 06:34:04 +00:00
s_server.cpp Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
s_server.h Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00