cloudpanel-io / cloudpanel-ce

1.28k stars 107 forks source link

Issue deleting subfolder named '0' causes browser freeze and deletes parent folder #542

Open PrestaBiz opened 2 weeks ago

PrestaBiz commented 2 weeks ago

CloudPanel version(s) affected

2.4.2

Description

When a folder is created with a subfolder named '0' (zero), attempting to delete the '0' subfolder causes the browser to freeze and unexpectedly removes the parent folder containing it. This issue is critical for the PrestaShop platform, as it relies on creating subfolders named '0' to store images, which risks unintended data loss.

How to reproduce

Open FileManager Create a new folder Inside this folder, create a subfolder named '0' Attempt to delete the subfolder '0'

Possible Solution

No response

Additional Context

No response

cloudpanel-io commented 2 days ago

We need a javascript expert who help us fixing the issue in: file-manager/assets/filemanager.js