Software /
code /
prosody-modules
Diff
mod_firewall/mod_firewall.lua @ 2550:19a182651a9b
mod_firewall: Allow backslash escapes in definitions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 23 Feb 2017 14:00:43 +0000 |
parent | 2549:2ff588094938 |
child | 2558:2b533a7b5236 |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Thu Feb 23 14:00:26 2017 +0000 +++ b/mod_firewall/mod_firewall.lua Thu Feb 23 14:00:43 2017 +0000 @@ -377,7 +377,7 @@ if not val then return nil, errmsg("No value given for definition"); end - + val = stripslashes(val); local ok, ret = pcall(definition_handlers[what], name, val); if not ok then return nil, errmsg(ret);