summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-10 15:48:49 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-10 15:48:49 +0000
commitf61147a82b21024c7a030bb53d4eff5db19e3b9b (patch)
treecec53a80a422529d767c97895612d2cb04c73e4b /modules/admin-full/luasrc/model
parent8b1167fb91864e16a4e6b9d73cd607174b203d9d (diff)
modules/admin-full: fixup newlines when storing sysupgrade.conf
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_index/luci.lua1
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 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