mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 11:02:19 +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
|
||||
if req.body then
|
||||
local str = unescape(req.body:match(".-=(.*)"))
|
||||
xpcall(function() loadstring(str)() end, lovebird.onError)
|
||||
xpcall(function() assert(loadstring(str))() end, lovebird.onError)
|
||||
end
|
||||
-- Generate page
|
||||
local t = {}
|
||||
|
Reference in New Issue
Block a user