git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8b1167f
)
modules/admin-full: fixup newlines when storing sysupgrade.conf
author
Jo-Philipp Wich
<redacted>
Mon, 10 Jan 2011 15:48:49 +0000
(15:48 +0000)
committer
Jo-Philipp Wich
<redacted>
Mon, 10 Jan 2011 15:48:49 +0000
(15:48 +0000)
modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
patch
|
blob
|
history
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 6ecf298eb2cc3e3f14340b23f5c69197ba48936f..e29479b07a236162e04de9c55a5f364e9fe1628a 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT