mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 11:02:19 +00:00
Added chunkname arg to loadstring of console's input
This commit is contained in:
@@ -30,7 +30,7 @@ lovebird.pages["index"] = [[
|
|||||||
-- Handle console input
|
-- Handle console input
|
||||||
if req.parsedbody.input then
|
if req.parsedbody.input then
|
||||||
local str = req.parsedbody.input
|
local str = req.parsedbody.input
|
||||||
xpcall(function() assert(loadstring(str))() end, lovebird.onerror)
|
xpcall(function() assert(loadstring(str, "input"))() end, lovebird.onerror)
|
||||||
end
|
end
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user