Comparison

mod_component_guard/mod_component_guard.lua @ 459:3117d7e207c5

mod_component_guard: added default empty table entries for config options (is it even valid for true sets?)
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 23 Oct 2011 23:30:36 +0000
parent 458:4149fcacbbf1
child 460:9bb9343f3c7a
comparison
equal deleted inserted replaced
458:4149fcacbbf1 459:3117d7e207c5
1 -- Block or restrict by blacklist remote access to local components. 1 -- Block or restrict by blacklist remote access to local components.
2 2
3 local guard_blockall = module:get_option_set("component_guard_blockall") 3 local guard_blockall = module:get_option_set("component_guard_blockall", {})
4 local guard_protect = module:get_option_set("component_guard_components") 4 local guard_protect = module:get_option_set("component_guard_components", {})
5 local guard_block_bl = module:get_option_set("component_guard_blacklist") 5 local guard_block_bl = module:get_option_set("component_guard_blacklist", {})
6 6
7 local s2smanager = require "core.s2smanager"; 7 local s2smanager = require "core.s2smanager";
8 local config = require "core.configmanager"; 8 local config = require "core.configmanager";
9 local nameprep = require "util.encodings".stringprep.nameprep; 9 local nameprep = require "util.encodings".stringprep.nameprep;
10 10