summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua b/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua
index 1c5569ccd4..26410c98a1 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/sshkeys.lua
@@ -26,10 +26,10 @@ end
function f.handle(self, state, data)
if state == FORM_VALID then
if data.keys then
- luci.fs.writefile(keyfile, data.keys)
+ luci.fs.writefile(keyfile, data.keys:gsub("\r\n", "\n"))
end
end
return true
end
-return f \ No newline at end of file
+return f