https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7623
Bug ID: 7623
Summary: sa-update files with mirrors containing paths (or
ports)
Product: Spamassassin
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sa-update
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
The DNS query introduced in
https://github.com/apache/spamassassin/commit/83bc5ea4062948f399ca1b96ea906314717850fe
fails if the update URL contains paths or ports. According to
https://wiki.apache.org/spamassassin/PublishingRuleUpdates this should be
supported.
Right now only the trailing slash + leading scheme will be removed. Optional
paths or ports will be passed together with the domain to do_dns_query. e.g.
"http://sa.zmi.at/sa-update-german/" will result in
do_dns_query("sa.zmi.at/sa-update-german"). Obviously this can't work and the
mirror will be marked as failed.
A quick fix would be using the URI module: $mirror = URI->new($mirror)->host
Do not know if this is available in all supported perl versions.
--
You are receiving this mail because:
You are the assignee for the bug.