Mercurial > prosody-modules
diff mod_firewall/mod_firewall.lua @ 2526:b2fc41001c8e
mod_firewall: Fix pattern
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 20 Feb 2017 09:29:25 +0000 |
parents | a35d85cfda92 |
children | 5ff7eb601d60 |
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua Mon Feb 20 09:29:09 2017 +0000 +++ b/mod_firewall/mod_firewall.lua Mon Feb 20 09:29:25 2017 +0000 @@ -325,7 +325,7 @@ end local f, err = io.open(fn); if not f then return nil, errmsg(err); end - val = f:read("*a"):gsub("\r?\n", " "):gsub("%s+5", ""); + val = f:read("*a"):gsub("\r?\n", " "):gsub("%s+$", ""); end if not val then return nil, errmsg("No value given for definition");