Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132094 Details for
Bug 194093
patch for dev-python/formencode-0.7.1 to fix serious DNS bug in email validator
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for email DNS bug
formencode-0.7.1-dns.patch (text/plain), 946 bytes, created by
Jacob Smullyan
on 2007-09-28 15:36:54 UTC
(
hide
)
Description:
patch for email DNS bug
Filename:
MIME Type:
Creator:
Jacob Smullyan
Created:
2007-09-28 15:36:54 UTC
Size:
946 bytes
patch
obsolete
>Index: formencode/validators.py >=================================================================== >--- formencode/validators.py (revision 3007) >+++ formencode/validators.py (working copy) >@@ -42,7 +42,7 @@ > > try: > import DNS >- DNS.ParseResolvConf() >+ DNS.DiscoverNameServers() > have_dns=True > except ImportError: > have_dns=False >@@ -1230,8 +1230,10 @@ > if self.resolve_domain: > assert have_dns, "pyDNS should be available" > try: >- a=DNS.DnsRequest(domain).req().answers >- dnsdomains=[x['data'] for x in a if x['typename'] in ('A', 'MX')] >+ a=DNS.DnsRequest(domain, qtype='mx').req().answers >+ if not a: >+ a=DNS.DnsRequest(domain, qtype='a').req().answers >+ dnsdomains=[x['data'] for x in a] > except (socket.error, DNS.DNSError), e: > raise Invalid( > self.message('socketError', state, error=e),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194093
:
132093
| 132094