mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 02:52: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
|
||||
if req.parsedbody.input then
|
||||
local str = req.parsedbody.input
|
||||
xpcall(function() assert(loadstring(str))() end, lovebird.onerror)
|
||||
xpcall(function() assert(loadstring(str, "input"))() end, lovebird.onerror)
|
||||
end
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user