-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hidden inputs to work with formaction/formmethod support in Roda …
…3.77+ route_csrf plugin A previous commit added :formaction attribute support for buttons, but if you used that on a POST form, and you were using request specific tokens, the form submission wouldn't pass CSRF validation, because the CSRF value would not match the path it was actually submitted to. Changes were made in Roda 3.77.0 to support multiple CSRF values in form submissions, and being able to pick the correct one for the current path. This uses that support to set the correct hidden inputs. It also updates the forme_set CSRF metadata to perform a similar check.
- Loading branch information
1 parent
ee3fceb
commit 26a9d00
Showing
5 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters