Localisation not set correctly on authenticity token errors
|Assignee:||Jean-Philippe Lang||% Done:|
Localisation not set correctly on authenticity token errors (#18499).
Patch by Felix Schäfer.
#1 Updated by Felix Schäfer about 8 years ago
- File 18499.patch added
This error was discovered on Planio. The attached patch fixes the problem and adds a test to make sure it stays that way.
set_localization should even be called at the end of
logged_user= to make sure a user change also changes the locale? (I haven't tested that though).
#2 Updated by Jean-Philippe Lang about 8 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.6.1
- Resolution set to Fixed
Patch committed in r13670, thanks.
Felix Schäfer wrote:
set_localizationshould even be called at the end of
logged_user=to make sure a user change also changes the locale? (I haven't tested that though).
Not sure it would improve things, most
#logged_user= are followed by a redirect. And
#set_localization would still have to be called in a few places.