Bug #8327
silent asserts produce a gettext header
Start date:
23 September 2015
Due date:
% Done:
100%
Estimated time:
Patch proposed:
No
Planning:
Description
log_assert() got it and a message got displayed but since the string was empty it was replaced by the gettext header (see capture).
I'd suggest a change of this kind:
- return error_redirect(request, e.message) + return error_redirect(request, e.message or repr(e))
Files
Associated revisions
History
Updated by Frédéric Péters over 7 years ago
Updated by Benjamin Dauvergne over 7 years ago
- Status changed from Nouveau to Résolu (à déployer)
- % Done changed from 0 to 100
Appliqué par commit authentic2|6c2665d4d8acea40e0f51a5632225f02eea72430.
Updated by Benjamin Dauvergne almost 7 years ago
- Status changed from Résolu (à déployer) to Solution déployée
idp/saml2: prevent silent asserts from producing producing a gettext header (fixes #8327)
error_redirect() pass its msg argument to gettext, if msg is empty,
gettext header is returned.