mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
vHost editor uses CRLF when saving files on disk #436
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RixzZ on 1/27/2023
CloudPanel version(s) affected
2.2.0
Description
Seems like the vhost editor from CloudPanel uses CRLF for some reason. This is being translated to disk files, so it's not just visual during editing.
How to reproduce
Open the vhost file with an editor that shows carriage returns to see it.
Even if you convert it to LF manually, saving on the CloudPanel editor adds the CRLF again.
Possible Solution
No response
Additional Context