diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-01-10 15:48:49 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-01-10 15:48:49 +0000 |
commit | f61147a82b21024c7a030bb53d4eff5db19e3b9b (patch) | |
tree | cec53a80a422529d767c97895612d2cb04c73e4b /modules/admin-full/luasrc/model/cbi | |
parent | 8b1167fb91864e16a4e6b9d73cd607174b203d9d (diff) |
modules/admin-full: fixup newlines when storing sysupgrade.conf
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi')
-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 |