webmcp

diff framework/bin/mcp.lua @ 232:82cc171e8510

Pass _ENV to loaded chunks
author jbe
date Sat Feb 28 23:11:40 2015 +0100 (2015-02-28)
parents 2eda136b0394
children 827c44692141
line diff
     1.1 --- a/framework/bin/mcp.lua	Sat Feb 28 23:04:43 2015 +0100
     1.2 +++ b/framework/bin/mcp.lua	Sat Feb 28 23:11:40 2015 +0100
     1.3 @@ -100,7 +100,7 @@
     1.4      if file then
     1.5        local filedata = file:read("*a")
     1.6        io.close(file)
     1.7 -      local func, errmsg = load(filedata, "=" .. filename)
     1.8 +      local func, errmsg = load(filedata, "=" .. filename, nil, _ENV)
     1.9        if func then
    1.10          func()
    1.11          return true

Impressum / About Us