From 43a7436644c968148b6ee7a06bc640e0062524ab Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 10 Jan 2011 15:50:24 +0000 Subject: [PATCH] luci-0.10: merge r6698 --- modules/admin-full/luasrc/model/cbi/admin_index/luci.lua | 1 + 1 file changed, 1 insertion(+) 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 6ecf298eb..e29479b07 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 -- 2.25.1