You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2018/03/15 14:27:09 UTC

svn commit: r1826822 - /spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm

Author: gbechis
Date: Thu Mar 15 14:27:09 2018
New Revision: 1826822

URL: http://svn.apache.org/viewvc?rev=1826822&view=rev
Log:
fix for perl older than 5.24

Modified:
    spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm

Modified: spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm?rev=1826822&r1=1826821&r2=1826822&view=diff
==============================================================================
--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm (original)
+++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HTTPSMismatch.pm Thu Mar 15 14:27:09 2018
@@ -58,7 +58,8 @@ sub check_https_http_mismatch {
     $permsgstatus->{chhm_anchors} = 0;
 
     foreach my $k ( keys %{$permsgstatus->{html}->{uri_detail}} ) {
-      my $v = %{$permsgstatus->{html}->{uri_detail}}{$k};
+      my %uri_detail = %{$permsgstatus->{html}->{uri_detail}};
+      my $v = ${uri_detail}{$k};
       # 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}});