Skip to content

Commit

Permalink
fix a key validation bug in mailgunReader
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCreator committed Sep 14, 2022
1 parent c146163 commit 7b3a49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/mailgunReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ mailgunReader.prototype.getKey = function getKey(fullKey) {
let prefix, key;

// Lets check for newer key format
if( mailKey.length > 37 ) {
if( fullKey.length > 37 ) {
// Handle newer key format
let pt = fullKey.lastIndexOf("-", fullKey.length - 36);
prefix = fullKey.slice(0,pt);
Expand Down

0 comments on commit 7b3a49d

Please sign in to comment.