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:
authorWolfgang Karall-Ahlborn <wolfgangkarall@users.noreply.github.com>2021-03-17 14:05:04 +0300
committerWolfgang Karall-Ahlborn <wolfgangkarall@users.noreply.github.com>2021-03-17 14:05:04 +0300
commita2945aadc612383554f374721bef508965de0efb (patch)
treeae3ff1b67059581a8d6a2f899f2abdeb6caf6ae4
parent6a833656b04f1bbb825d006109f049d3e8f3da9c (diff)
Use defined() nonetheless, as there's still a possibility of undef.
-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';
};