Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unsafe package library #2190

Open
wants to merge 1 commit into
base: 5_1-new
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion Docs/Luadoc/Lua.xml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@
<Function name='rec_count_children'/>
<Function name='rec_print_children'/>
<Function name='rec_print_table'/>
<Function name='require'/>
<Function name='round'/>
<Function name='scale'/>
<Function name='scale_to_fit'/>
Expand Down
4 changes: 0 additions & 4 deletions Docs/Luadoc/LuaDocumentation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,6 @@ save yourself some time, copy this for undocumented things:
<Function name='ReportStyle' return='void' arguments=''>
Sends the current style to the server.
</Function>
<Function name='require' return='void' arguments='string modname'>
Loads the specified module.<br />
<code>require</code> is a core function of Lua's basic library; see the Lua manual for more details.
</Function>
<Function name='round' theme='_fallback' return='int' arguments='float val, int decimal'>
[02 Utilities.lua] Round a number.
</Function>
Expand Down
7 changes: 0 additions & 7 deletions src/LuaManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,6 @@ LuaManager::LuaManager()
lua_pushcfunction( L, luaopen_string ); lua_call( L, 0, 0 );
lua_pushcfunction( L, luaopen_table ); lua_call( L, 0, 0 );
lua_pushcfunction( L, luaopen_debug ); lua_call( L, 0, 0 );
lua_pushcfunction( L, luaopen_package ); lua_call( L, 0, 0 ); // this one seems safe -shake
// these two can be dangerous. don't use them
// (unless you know what you are doing). -aj
#if 0
lua_pushcfunction( L, luaopen_io ); lua_call( L, 0, 0 );
lua_pushcfunction( L, luaopen_os ); lua_call( L, 0, 0 );
#endif

// Store the thread pool in a table on the stack, in the main thread.
#define THREAD_POOL 1
Expand Down