-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clearing Control Panel resources deletes gitignore #2823
Comments
Thanks for pointing that out! Fixed for the next release. |
I'm still experiencing this @brandonkelly, on Craft CMS 3.1.14. Same repro steps as the first post ^ |
@benface Strange, still working correctly on my end. Is your gitignore file named exactly |
@brandonkelly This is weird. It's happening on the production server but not locally. And yes, the file is named exactly
The server is a cPanel VPS. All the requirements are met for running Craft (except the Max Execution Time which is set to 60 seconds instead of 120). Anything else would be useful? |
Have you set a custom |
@brandonkelly No, I haven’t. |
Huh… I’m a bit stumped then. You’re positive that the |
I'm having the same issue. |
@epcliff which version of Craft are you running? |
Sorry, I guess this fell through the cracks. I was able to reproduce the issue after looking into it again per #7361, and it’s now fixed for the next release. |
Craft 3.5.18 is out now with that fix ✨ |
Description
When clearing control panel resource cache, it deletes the (by default provided by
craftcms/craft
)/web/cpresources/.gitignore
file. As a result someone could accidentally commit the contents of theircpresources
directory.Steps to reproduce
.gitignore
file inside thecpresources
directoryAdditional info
The text was updated successfully, but these errors were encountered: