File editing doesn't work
Bug Report
Description of bug
When clicking on a file, nothing shows up.
The js error is here:
05:35:57.831 Uncaught SyntaxError: '' string literal contains an unescaped line break files:652:75
05:36:08.139
Uncaught ReferenceError: edit_file is not defined
onclick https://[Personal info]:8000/admin/files?id=1:1 files:1:1
Looking into files:652:75:
data: {
'name': result,
'type': type,
'server_id': 1,
'pwd': 'C:\Users\[Personal info]\servers\waterfall\',
},
Since paths use backslashes under every version of Windows, they need to be escaped. I would normally fix this issue myself, but I'm not too comfortable with python.
Steps to reproduce
Not 100% sure but I'm running Windows Server 2019. If you need to watch me do it, then add me on discord under based#7751.
Environment Information
- [What OS are you on?] Windows Server 2019
- [What version of Crafty are you using?] v3.3.0 https://gitlab.com/crafty-controller/crafty-web/-/releases
- [What branch of Crafty are you using?] master