Added chunkname arg to loadstring of console's input

This commit is contained in:
rxi 2014-04-15 12:40:14 +01:00
parent c01eadea6b
commit cc963854eb

View File

@ -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
?>