summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-firewall
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-firewall')
-rw-r--r--applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
index f0e7b8665d..d40de7cdba 100644
--- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
+++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua
@@ -62,6 +62,7 @@ function custom.cfgvalue(self, section)
end
function custom.write(self, section, value)
+ value = value:gsub("\r\n?", "\n")
nixio.fs.writefile("/etc/firewall.user", value)
end