mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-10-02 14:52:30 +00:00
Added assert to input's loaded string
This commit is contained in:
@@ -134,7 +134,7 @@ function lovebird.onRequest(req, client)
|
|||||||
-- Handle input
|
-- Handle input
|
||||||
if req.body then
|
if req.body then
|
||||||
local str = unescape(req.body:match(".-=(.*)"))
|
local str = unescape(req.body:match(".-=(.*)"))
|
||||||
xpcall(function() loadstring(str)() end, lovebird.onError)
|
xpcall(function() assert(loadstring(str))() end, lovebird.onError)
|
||||||
end
|
end
|
||||||
-- Generate page
|
-- Generate page
|
||||||
local t = {}
|
local t = {}
|
||||||
|
Reference in New Issue
Block a user