You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2019/06/26 06:53:34 UTC

svn commit: r1862103 - in /spamassassin: branches/3.4/sa-update.raw trunk/sa-update.raw

Author: hege
Date: Wed Jun 26 06:53:33 2019
New Revision: 1862103

URL: http://svn.apache.org/viewvc?rev=1862103&view=rev
Log:
Fix previous commit logic..

Modified:
    spamassassin/branches/3.4/sa-update.raw
    spamassassin/trunk/sa-update.raw

Modified: spamassassin/branches/3.4/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/sa-update.raw?rev=1862103&r1=1862102&r2=1862103&view=diff
==============================================================================
--- spamassassin/branches/3.4/sa-update.raw (original)
+++ spamassassin/branches/3.4/sa-update.raw Wed Jun 26 06:53:33 2019
@@ -854,7 +854,7 @@ foreach my $channel (@channels) {
     # Validate the SHA512 signature
     { local($1);
       $SHA512 =~ /^([a-fA-F0-9]{128})\b/;
-      $SHA512 = lc($1) || 'INVALID';
+      $SHA512 = defined $1 ? lc($1) : 'INVALID';
     }
     my $digest = sha512_hex($content);
     dbg("sha512: verification wanted: $SHA512");
@@ -869,7 +869,7 @@ foreach my $channel (@channels) {
     # Validate the SHA256 signature
     { local($1);
       $SHA256 =~ /^([a-fA-F0-9]{64})\b/;
-      $SHA256 = lc($1) || 'INVALID';
+      $SHA256 = defined $1 ? lc($1) : 'INVALID';
     }
     my $digest = sha256_hex($content);
     dbg("sha256: verification wanted: $SHA256");

Modified: spamassassin/trunk/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-update.raw?rev=1862103&r1=1862102&r2=1862103&view=diff
==============================================================================
--- spamassassin/trunk/sa-update.raw (original)
+++ spamassassin/trunk/sa-update.raw Wed Jun 26 06:53:33 2019
@@ -854,7 +854,7 @@ foreach my $channel (@channels) {
     # Validate the SHA512 signature
     { local($1);
       $SHA512 =~ /^([a-fA-F0-9]{128})\b/;
-      $SHA512 = lc($1) || 'INVALID';
+      $SHA512 = defined $1 ? lc($1) : 'INVALID';
     }
     my $digest = sha512_hex($content);
     dbg("sha512: verification wanted: $SHA512");
@@ -869,7 +869,7 @@ foreach my $channel (@channels) {
     # Validate the SHA256 signature
     { local($1);
       $SHA256 =~ /^([a-fA-F0-9]{64})\b/;
-      $SHA256 = lc($1) || 'INVALID';
+      $SHA256 = defined $1 ? lc($1) : 'INVALID';
     }
     my $digest = sha256_hex($content);
     dbg("sha256: verification wanted: $SHA256");