You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/mail-filter/spamassassin/files/spamassassin-3.4.2-bug_7623...

14 lines
599 B

Bug: https://bugs.gentoo.org/677250
Bug: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7623
--- a/sa-update.raw 2018/09/29 09:33:52 1842302
+++ b/sa-update.raw 2018/09/29 09:41:24 1842303
@@ -1659,6 +1659,7 @@
my($a_rr, $aaaa_rr);
# RFC 3986: scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
$mirror =~ s{^[a-z][a-z0-9.+-]*://}{}si; # strip scheme like http://
+ $mirror =~ s{[:/].*}{}s; # strip all starting from :port or /path
return 1 if $have_inet4 && do_dns_query($mirror, "A");
return 1 if $have_inet6 && do_dns_query($mirror, "AAAA");
return 0;