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
EZP-30161: Handle form token in both custom and also for historical reasons default value (#1431)
* EZP-30161: Handle form token in both custom and also for historical reasons default value
Since 5.0 FormToken code has been operating in two modes:
- Default pure legacy mode using `ezxform_token` as form name
- Symfony mode using `_token` as form name
Hoewever quite some legacy code hard codes the default name.
In 5.x this inconsistancy was solved by setting Symfony to use `field_name: ezxform_token`
For Platform + legacy bridge that is no longer a good default, so this changes the logic
so that ezxFormToken is cable of handling both at the same time.
* Apply suggestions from code review
Co-Authored-By: Gunnstein Lye <[email protected]>
0 commit comments