summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
Diffstat (limited to 'applications')
-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 f0e7b8665..d40de7cdb 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