# HG changeset patch # User Matthew Wild # Date 1458213769 0 # Node ID 41a0a9db89efc316edd8618afe7a491abf4d3f41 # Parent cbd0095e930237b6fe86cd4e33fd69a1e862efbc mod_firewall: Allow actions to have underscores in their names diff -r cbd0095e9302 -r 41a0a9db89ef mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Thu Mar 17 11:22:35 2016 +0000 +++ b/mod_firewall/mod_firewall.lua Thu Mar 17 11:22:49 2016 +0000 @@ -221,7 +221,7 @@ end state = "actions"; -- Action handlers? - local action = line:match("^%P+"); + local action = line:match("^[%w_]+"); if not action_handlers[action] then return nil, ("Unknown action on line %d: %s"):format(line_no, action or ""); end