You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
As you can see both folders get the same id but the first folder should have the id /tmp/par/0. This is why the javascript finds the wrong folder and deletes it.
Since the backend is obfuscated I didn't debug further but it is a backend/php issue, not a javascript problem.
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
The text was updated successfully, but these errors were encountered: