Replace Dos line endings with Unix ones where needed
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_services / crontab.lua
index 7a9750f..521e0a2 100644 (file)
@@ -26,10 +26,10 @@ end
 function f.handle(self, state, data)
        if state == FORM_VALID then
                if data.crons then
-                       luci.fs.writefile(cronfile, data.crons)
+                       luci.fs.writefile(cronfile, data.crons:gsub("\r\n", "\n"))
                end
        end
        return true
 end
 
-return f
\ No newline at end of file
+return f