Skip to content

Commit

Permalink
Additional crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XtramCZ committed Jun 30, 2023
1 parent 40bc202 commit 8fa47ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def write_script(request, filename):
textbuffer = form_data['scriptData']
textbuffer = cleanup_text(textbuffer)
#print(textbuffer)
for line in textbuffer:
f.write(line)
for line in textbuffer.splitlines():
f.write(line + '\n')
f.close()
storage.remount("/",readonly=True)
response = response_html.format("Wrote script " + filename)
Expand Down

0 comments on commit 8fa47ca

Please sign in to comment.