diff options
-rwxr-xr-x | dmarcts-report-parser.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmarcts-report-parser.pl b/dmarcts-report-parser.pl index 756476a..e140ce4 100755 --- a/dmarcts-report-parser.pl +++ b/dmarcts-report-parser.pl @@ -920,7 +920,7 @@ sub storeXMLInDatabase { } } } - if ( ! grep { $_ eq $dkimresult } ALLOWED_DKIMRESULT ) { + if ( ! defined($dkimresult) || ! grep { $_ eq $dkimresult } ALLOWED_DKIMRESULT ) { $dkimresult = 'unknown'; }; @@ -953,7 +953,7 @@ sub storeXMLInDatabase { } } } - if ( ! grep { $_ eq $spfresult } ALLOWED_SPFRESULT ) { + if ( ! defined($spfresult) || ! grep { $_ eq $spfresult } ALLOWED_SPFRESULT ) { $spfresult = 'unknown'; }; |