https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6959

--- Comment #7 from Mark Martinec <[email protected]> ---
Created attachment 5161
  --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=5161&action=edit
Proposed patch

How about this fix (attached and comitted):

trunk:
  Bug 6959 - Malformed UTF-8 character in transliteration at DnsResolver.pm
  Sending lib/Mail/SpamAssassin/Dns.pm
  Sending lib/Mail/SpamAssassin/DnsResolver.pm
  Sending lib/Mail/SpamAssassin/Plugin/AskDNS.pm
  Sending lib/Mail/SpamAssassin/Util.pm
Committed revision 1507148.

- Util.pm: encode character string as it comes from a Net::DNS::Packet
  query section back into bytes before "RFC 1035 zone file format"-decoding
  it to avoid producing an invalid character string

- Util.pm: rename fmt_dns_question_entry to decode_dns_question_entry
  to better reflect its purpose

- DnsResolver::send(): encode a character string (with an utf8 flag)
  as it comes from a SPF plugin to plain bytes in order to avoid
  challenging Net::DNS

- DnsResolver.pm: issue an info message if a domain name is
  a character string (with an utf8 flag) instead of plain bytes
  (seems the source of these was exclusively the SPF plugin,
  actually the underlying SPF perl module)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to