Weird brackets at the beginning of file in editor #231

Closed
opened 2026-04-05 20:26:04 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @chundurijagadeesh on 6/9/2024

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

*Originally created by @chundurijagadeesh on 6/9/2024* ### 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](https://github.com/cloudpanel-io/cloudpanel-ce/assets/145164906/4ac02022-21d8-486b-bc77-674f6dcdba89) ![IMG_20240609_220851](https://github.com/cloudpanel-io/cloudpanel-ce/assets/145164906/0de11242-07be-4fee-b152-f6edaa761db8) ![IMG_20240609_220913](https://github.com/cloudpanel-io/cloudpanel-ce/assets/145164906/7c3c2a23-273e-4a26-9b19-c77e5544360d) ### 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_
Sign in to join this conversation.