diff options
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_index/luci.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua index 6ecf298eb2..e29479b07a 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua @@ -100,6 +100,7 @@ c.cfgvalue = function(self, section) end c.write = function(self, section, value) + value = value:gsub("\r\n?", "\n") return nixio.fs.writefile("/etc/sysupgrade.conf", value) end |