cloudpanel-io / cloudpanel-ce

1.19k stars 98 forks source link

Unexpected brackets at the beginning of files #484

Open chundurijagadeesh opened 2 months ago

chundurijagadeesh commented 2 months ago

CloudPanel version(s) affected

2.4.2

Description

When the folder is named "manage-files", any file inside that folder when edited are having the characters [] at the beginning. This may be either a new file or an existing, editor is adding them.

How to reproduce

  1. Create a folder with name "manage-files" (no need of quotes)
  2. Create a php file (like hello.php) or upload any existing file
  3. Edit it and observe the characters [] at the beginning

Possible Solution

No response

Additional Context

No response

cloudpanel-io commented 2 months ago

We can reproduce it, thanks for reporting it.

DicoSky commented 2 months ago

not just manage-files but any folder that have this name 'files' will be affected