|
2012/1/20 Pierre-Yves Gérardy <pygy79@gmail.com>: > local function safe_loadstring (s,chunkname) > if s:match"^%.Lua" then > return false, "Attempt to load bytecode." -- are there other > bytecode signatures? That check won't detect bytecode. You'd probably be better with "if s:byte() == 27 then".