Skip to content

Only run rmdir() when not is_link() - #3494

Open
BrutalBirdie wants to merge 1 commit into
espocrm:masterfrom
BrutalBirdie:3493
Open

Only run rmdir() when not is_link()#3494
BrutalBirdie wants to merge 1 commit into
espocrm:masterfrom
BrutalBirdie:3493

Conversation

@BrutalBirdie

Copy link
Copy Markdown

This is a suggested fix for #3493

@yurikuzn

Copy link
Copy Markdown
Contributor

Hi,

I'm not sure that it's how we should fix it. It skips removal when the passed path is not a directory. I assume that we should delete the directory by its real path. But it needs more thorough check. As it's the very core function.

@BrutalBirdie

Copy link
Copy Markdown
Author

Hello @yurikuzn
True.
I made this quick and dirty fix for me to resolve two tickets we got in the Cloudron Forum.
Also, I never really did much PHP development, so I am not the best choice to provide a solid solution 😅

But I can get the stone rolling 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants