# HG changeset patch # User Kim Alvefur # Date 1465465675 -7200 # Node ID 98354fbea63c47dac3ac6f71c25a9c3a86791dc8 # Parent affccf479f89c81ad63abde9f8f993c17e87939d mod_storage_appendmap: Prevent _ENV = false diff -r affccf479f89 -r 98354fbea63c mod_storage_appendmap/mod_storage_appendmap.lua --- a/mod_storage_appendmap/mod_storage_appendmap.lua Thu Jun 09 11:46:45 2016 +0200 +++ b/mod_storage_appendmap/mod_storage_appendmap.lua Thu Jun 09 11:47:55 2016 +0200 @@ -32,7 +32,7 @@ function map:set_keys(user, keyvalues) local keys, values = {}, {}; if _VERSION == "Lua 5.1" then - assert(not keyvalues._ENV, "'_ENV' is a restricted key"); + assert(keyvalues._ENV == nil, "'_ENV' is a restricted key"); end for key, value in pairs(keyvalues) do module:log("debug", "user %s sets %q to %s", user, key, tostring(value))