You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/11/06 21:31:23 UTC
svn commit: rev 56773 - spamassassin/trunk/lib/Mail/SpamAssassin
Author: felicity
Date: Sat Nov 6 12:31:22 2004
New Revision: 56773
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
Log:
bug 3439: allow blank HTML-parsed URIs to be included in the list of URIs.
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm Sat Nov 6 12:31:22 2004
@@ -317,6 +317,8 @@
}
}
+# puts the uri onto the internal array
+# note: uri may be blank (<a href=""></a> obfuscation, etc.)
sub push_uri {
my ($self, $uri) = @_;
@@ -327,7 +329,7 @@
$uri =~ s/\s+$//;
my $target = target_uri($self->{base_href} || "", $uri);
- push @{ $self->{uri} }, $target if $target;
+ push @{ $self->{uri} }, $target;
}
sub html_uri {