Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-parser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dmarcts-report-parser.pl')
-rwxr-xr-xdmarcts-report-parser.pl4
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';
};