Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 691598 Details for
Bug 906804
SpamAssassin does not detect HTTP(S) URL multiline mismatches in base64 encoded e-mail
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
HTTPSMismatch.pm patch - avoid using array of cleaned uris
Mail-SpamAssassin-3.3.2-bz892348.patch (text/plain), 1.92 KB, created by
Filip Krska
on 2013-02-01 14:24:56 UTC
(
hide
)
Description:
HTTPSMismatch.pm patch - avoid using array of cleaned uris
Filename:
MIME Type:
Creator:
Filip Krska
Created:
2013-02-01 14:24:56 UTC
Size:
1.92 KB
patch
obsolete
>diff -up Mail-SpamAssassin-3.3.2/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm.bz892348 Mail-SpamAssassin-3.3.2/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm >--- Mail-SpamAssassin-3.3.2/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm.bz892348 2013-02-01 14:44:52.003000000 +0100 >+++ Mail-SpamAssassin-3.3.2/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm 2013-02-01 14:53:16.041000000 +0100 >@@ -55,29 +55,26 @@ sub check_https_http_mismatch { > $permsgstatus->{chhm_hit} = 0; > $permsgstatus->{chhm_anchors} = 0; > >- foreach my $v ( values %{$permsgstatus->{html}->{uri_detail}} ) { >+ while ((my $k, my $v) = each (%{$permsgstatus->{html}->{uri_detail}} )) { > # if the URI wasn't used for an anchor tag, or the anchor text didn't > # exist, skip this. > next unless (exists $v->{anchor_text} && @{$v->{anchor_text}}); > > my $uri; >- foreach (@{$v->{cleaned}}) { >- if (m@^https?://([^/:]+)@i) { >- $uri = $1; >- >- # Skip IPs since there's another rule to catch that already >- if ($uri =~ /^\d+\.\d+\.\d+\.\d+$/) { >- undef $uri; >- next; >- } >- >- # want to compare whole hostnames instead of domains? >- # comment this next section to the blank line. >- $uri = Mail::SpamAssassin::Util::RegistrarBoundaries::trim_domain($uri); >- undef $uri unless (Mail::SpamAssassin::Util::RegistrarBoundaries::is_domain_valid($uri)); >+ if ($k =~ m@^https?://([^/:]+)@i) { >+ $uri = $1; > >- last if $uri; >+ # Skip IPs since there's another rule to catch that already >+ if ($uri =~ /^\d+\.\d+\.\d+\.\d+$/) { >+ undef $uri; >+ next; > } >+ >+ # want to compare whole hostnames instead of domains? >+ # comment this next section to the blank line. >+ $uri = Mail::SpamAssassin::Util::RegistrarBoundaries::trim_domain($uri); >+ undef $uri unless (Mail::SpamAssassin::Util::RegistrarBoundaries::is_domain_valid($uri)); >+ > } > > next unless $uri;
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
Flags:
fkrska
: review?
Actions:
View
|
Diff
Attachments on
bug 906804
: 691598