Only send mail from contact-info on POST requests. - #4361
Conversation
|
@mauritsvanrees thanks for creating this Pull Request and helping to improve Plone! TL;DR: Finish pushing changes, pass all other checks, then paste a comment: To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically. Happy hacking! |
|
@jenkins-plone-org please run jobs |
erral
left a comment
There was a problem hiding this comment.
Can we use plone.protect for this?
It has decorators or authenticators for this kind of protections. And we would be eating our own dog food, right?
|
Or better even, don't z3c.form forms have a |
|
We could directly pass the request to this function: I am fine with allowing the GET request and simply ignoring the query parameters, as in my PR. But there is something to be said for denying it with I don't see anything in |
Branch: refs/heads/master Date: 2026-08-10T11:36:44+02:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/Products.CMFPlone@696345b Only send mail from contact-info on POST requests. See plone/Products.CMFPlone#4360 Forward port of plone/Products.CMFPlone#4361 Files changed: A news/4360.bugfix.md M src/Products/CMFPlone/browser/contact_info.py M src/Products/CMFPlone/tests/mails.txt Repository: Products.CMFPlone Branch: refs/heads/master Date: 2026-08-11T22:55:51+02:00 Author: Maurits van Rees (mauritsvanrees) <maurits@py76.be> Commit: plone/Products.CMFPlone@6112ee3 Merge pull request #4364 from plone/maurits-issue-4360-contact-info-63 Only send mail from contact-info on POST requests. Files changed: A news/4360.bugfix.md M src/Products/CMFPlone/browser/contact_info.py M src/Products/CMFPlone/tests/mails.txt
See plone#4360 Forward port of plone#4361
See #4360