Correction d'un bug
This commit is contained in:
parent
1ac275c415
commit
4e525f5d79
@ -34,9 +34,13 @@ def email_disp(email):
|
|||||||
# Caractères non autorisés dans la RFC #822
|
# Caractères non autorisés dans la RFC #822
|
||||||
invalid_char = { '(', ')', '<', '>', ',', ';', ':', '"', '[', ']', '|', 'ç', '%', '&' }
|
invalid_char = { '(', ')', '<', '>', ',', ';', ':', '"', '[', ']', '|', 'ç', '%', '&' }
|
||||||
|
|
||||||
|
for character in invalid_char:
|
||||||
|
if character in email:
|
||||||
|
disp=False
|
||||||
|
|
||||||
cursor.execute("""SELECT mail FROM users WHERE mail=?""", (email,))
|
cursor.execute("""SELECT mail FROM users WHERE mail=?""", (email,))
|
||||||
testmail = cursor.fetchall()
|
testmail = cursor.fetchall()
|
||||||
if testmail :
|
if testmail and disp:
|
||||||
disp = False
|
disp = False
|
||||||
|
|
||||||
if disp:
|
if disp:
|
||||||
@ -48,9 +52,6 @@ def email_disp(email):
|
|||||||
if email in alias:
|
if email in alias:
|
||||||
disp=False
|
disp=False
|
||||||
|
|
||||||
for character in invalid_char:
|
|
||||||
if(email.find(character)>0):
|
|
||||||
disp=False
|
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user