Bug #6800
crash on invalid email address
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
validators: verify that email's domain idna encoding succeed before validating it (#6800)
Historique
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier 0001-validators-verify-that-email-s-domain-idna-encoding-.patch 0001-validators-verify-that-email-s-domain-idna-encoding-.patch ajouté
- Assigné à mis à Benjamin Dauvergne
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Nouveau à Solution déployée
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Solution déployée à Résolu (à déployer)
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Résolu (à déployer) à Fermé
validators: verify that email's domain idna encoding succeed before validating it (#6800)