Software /
code /
prosody-modules
Changeset
2526:b2fc41001c8e
mod_firewall: Fix pattern
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 20 Feb 2017 09:29:25 +0000 |
parents | 2525:a35d85cfda92 |
children | 2527:5ff7eb601d60 |
files | mod_firewall/mod_firewall.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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");