mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 04:31:49 +02:00
surround email in case of error
fix https://huntr.dev/bounties/441cc44c-6837-46ec-9b30-52455aa71a2f/
This commit is contained in:
parent
e9b7426a98
commit
93f5322ede
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue