changeset 2128 | 89363766202c |
parent 2122 | 643b254e75de |
child 2129 | edf5cf3c474b |
--- a/mod_firewall/mod_firewall.lua Fri Mar 18 01:18:16 2016 +0100 +++ b/mod_firewall/mod_firewall.lua Thu Mar 17 21:27:24 2016 +0000 @@ -37,6 +37,7 @@ chains[k] = v; end +-- Returns the input if it is safe to be used as a variable name, otherwise nil function idsafe(name) return name:match("^%a[%w_]*$") end