Projet

Général

Profil

0001-misc-pass-domain-as-string-for-email-validation-3929.patch

Frédéric Péters, 27 janvier 2020 15:07

Télécharger (895 octets)

Voir les différences:

Subject: [PATCH] misc: pass domain as string for email validation (#39297)

 wcs/qommon/form.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/form.py
912 912
                except socket.error:
913 913
                    # will fail on lack of DNS module or MX lookup failure
914 914
                    try:
915
                        l = len(DNS.mxlookup(domain))
915
                        l = len(DNS.mxlookup(force_str(domain)))
916 916
                    except:
917 917
                        l = 0
918 918
                    if l == 0:
919
-