Projet

Général

Profil

Bug #6800

crash on invalid email address

Ajouté par Frédéric Péters il y a environ 9 ans. Mis à jour il y a environ 9 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
24 mars 2015
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Mimicking #6796, the registration page crashed when I entered an invalid email address (fpeters@0d..be). Do note it is mitigated by the use of type="email" as client-side verification should happen first.

File "/usr/lib/python2.7/dist-packages/authentic2/validators.py" in __call__
  44.         mxs = self.check_mxs(hostname)
File "/usr/lib/python2.7/dist-packages/authentic2/validators.py" in check_mxs
  29.                 socket.gethostbyname(force_text(domain).encode('idna'))
File "/usr/lib/python2.7/encodings/idna.py" in encode
  164.             result.append(ToASCII(label))
File "/usr/lib/python2.7/encodings/idna.py" in ToASCII
  73.         raise UnicodeError("label empty or too long")

Fichiers

Révisions associées

Révision eaa6e23e (diff)
Ajouté par Benjamin Dauvergne il y a environ 9 ans

validators: verify that email's domain idna encoding succeed before validating it (#6800)

Révision 10e38ad4 (diff)
Ajouté par Benjamin Dauvergne il y a environ 9 ans

validators: verify that email's domain idna encoding succeed before validating it (#6800)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

#2

Mis à jour par Frédéric Péters il y a environ 9 ans

Ack.

#3

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Version cible mis à 2.2.0
#4

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Statut changé de Nouveau à Solution déployée
#5

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Statut changé de Solution déployée à Résolu (à déployer)
#6

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Version cible changé de 2.2.0 à 2.1.14
#7

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • % réalisé changé de 0 à 100
#8

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF