From f61147a82b21024c7a030bb53d4eff5db19e3b9b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 10 Jan 2011 15:48:49 +0000 Subject: [PATCH] modules/admin-full: fixup newlines when storing sysupgrade.conf --- 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