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
parents 2ff588094938
children 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);