cloudpanel-io/cloudpanel-ce

Weird brackets at the beginning of file in editor

Closed this issue · 1 comments

CloudPanel version(s) affected

2.4.2

Description

Weird brackets [] appearing in the top of all .php files of /home/user/htdocs folder when domain name is long.

IMG_20240609_220746

IMG_20240609_220851

IMG_20240609_220913

How to reproduce

  1. Create new generic PHP site with a long domain name, say "manage-files.myexamplesite.com"
  2. Go to file manager and under htdocs/ folder amd edit the default index.php file with CloudPanel editor
  3. Observe [] at the beginning
  4. Not just that, upload and extract any php project and edit any php file and observe [] at top
  5. This isn't occurring in files below htdocs

Possible Solution

No response

Additional Context

No response