mediawiki-extensions-Scribunto/engines/LuaStandalone
Brad Jorsch f52136eada Handle invalid keys in Lua-to-PHP calls for LuaStandalone
PHP can't handle having arrays/objects or functions as keys in its
arrays, so make sure we don't try to pass them from Lua. Booleans aren't
really well-handled either, so let's disallow them too.

Also, add tests for proper stringification of floats and infinities when
those are used as keys.

Note this behavior change is needed to match the change in LuaSandbox
for fixing bug 54527, but isn't itself a security issue.

Change-Id: I1e2951bbe8cb78358650ad377bf7119fcac4485d
2014-01-14 10:03:42 -05:00
..
binaries More-compatible Linux standalone binaries 2013-08-13 01:32:50 +00:00
lua_ulimit.sh Added tests and fixed bugs 2012-04-16 14:41:08 +10:00
LuaStandaloneEngine.php Scribunto should error out sooner if lua isn't executable 2013-08-30 11:34:19 -04:00
mw_main.lua Added more Lua environment features 2012-04-18 13:46:18 +10:00
MWServer.lua Handle invalid keys in Lua-to-PHP calls for LuaStandalone 2014-01-14 10:03:42 -05:00
protocol.txt (bug 46294) Fix for Windows text-mode file handles 2013-04-02 23:05:38 +00:00