changeset 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 9392f45b0364
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	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);