webmcp

changeset 238:4a735f198ded

Bugfix for globals exception (compare with _G instead of _ENV)
author jbe
date Sat Feb 28 23:58:51 2015 +0100 (2015-02-28)
parents ba596113a799
children 1d2b463a65b0
files framework/bin/mcp.lua
line diff
     1.1 --- a/framework/bin/mcp.lua	Sat Feb 28 23:51:20 2015 +0100
     1.2 +++ b/framework/bin/mcp.lua	Sat Feb 28 23:58:51 2015 +0100
     1.3 @@ -163,7 +163,7 @@
     1.4          return false
     1.5        end
     1.6      end
     1.7 -    if self == _ENV then
     1.8 +    if self == _G then
     1.9        allowed_globals[key] = true
    1.10      end
    1.11      if merge and try_exec(merge_path .. ".lua") then
    1.12 @@ -171,7 +171,7 @@
    1.13      elseif try_exec(path .. ".lua") then
    1.14      elseif try_dir(path .. "/") then
    1.15      else end
    1.16 -    if self == _ENV then
    1.17 +    if self == _G then
    1.18        allowed_globals[key] = nil
    1.19      end
    1.20      return rawget(self, key)

Impressum / About Us