mirror of
https://github.com/rxi/lovebird.git
synced 2024-11-15 22:54:21 +00:00
Added chunkname arg to loadstring of console's input
This commit is contained in:
parent
c01eadea6b
commit
cc963854eb
@ -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
|
||||
?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user