From 93f5322ede22446b7d86d513fd5925f018a89e27 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sat, 16 Jul 2022 22:59:35 +0200 Subject: [PATCH] surround email in case of error fix https://huntr.dev/bounties/441cc44c-6837-46ec-9b30-52455aa71a2f/ --- ihatemoney/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index 315a2ab7..af44ead7 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -41,6 +41,7 @@ from wtforms.validators import ( from ihatemoney.currency_convertor import CurrencyConverter from ihatemoney.models import Bill, LoggingMode, Person, Project from ihatemoney.utils import ( + em_surround, eval_arithmetic_expression, render_localized_currency, slugify, @@ -439,7 +440,7 @@ class InviteForm(FlaskForm): email_validator.validate_email(email) except email_validator.EmailNotValidError: raise ValidationError( - _("The email %(email)s is not valid", email=email) + _("The email %(email)s is not valid", email=em_surround(email)) )