mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 07:43:54 +08:00
correct alias name when it contains linebreak
This commit is contained in:
parent
59745b68d0
commit
93563178a7
1 changed files with 2 additions and 0 deletions
2
cron.py
2
cron.py
|
@ -383,6 +383,8 @@ def sanity_check():
|
|||
LOG.exception("Alias %s email not sanitized", alias)
|
||||
|
||||
if alias.name and "\n" in alias.name:
|
||||
alias.name = alias.name.replace("\n", "")
|
||||
db.session.commit()
|
||||
LOG.exception("Alias %s name contains linebreak %s", alias, alias.name)
|
||||
|
||||
for contact in Contact.query.all():
|
||||
|
|
Loading…
Reference in a new issue