mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 16:23:16 +08:00
check if there's an email that starts with "\u200f" (right-to-left mark (RLM)) in cron
This commit is contained in:
parent
4976f48944
commit
3fb6dd4aeb
1 changed files with 7 additions and 0 deletions
7
cron.py
7
cron.py
|
@ -702,6 +702,13 @@ def sanity_check():
|
|||
migrate_domain_trash()
|
||||
set_custom_domain_for_alias()
|
||||
|
||||
# check if there's an email that starts with "\u200f" (right-to-left mark (RLM))
|
||||
for contact in Contact.filter(Contact.website_email.startswith("\u200f")).all():
|
||||
contact.website_email = contact.website_email.replace("\u200f", "")
|
||||
LOG.e("remove right-to-left mark (RLM) from %s", contact)
|
||||
|
||||
Session.commit()
|
||||
|
||||
LOG.d("Finish sanity check")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue