Skip to content

Commit

Permalink
Merge branch 'hotfix/v5.2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
kartolo committed May 8, 2020
2 parents 591492e + 4277b1b commit 6fac00d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Hooks/JumpurlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function preprocessRequest($parameter, $parentObject)
// set juHash as done for external_url in core: http://forge.typo3.org/issues/46071
GeneralUtility::_GETset(GeneralUtility::hmac($jumpurl, 'jumpurl'), 'juHash');
$responseType = -1;
} elseif (GeneralUtility::isValidUrl($jumpurl)) {
} else {
// if it's a valid URL, throw exception
throw new \Exception('direct_mail: Invalid JumpURL parameter.', 1578347190);
}
Expand All @@ -178,8 +178,8 @@ public function preprocessRequest($parameter, $parentObject)
);

// check if entry exists in the last 10 seconds
$existingLog = $db->exec_SELECTcountRows(
'*',
$existingLog = $db->exec_SELECTgetSingleRow(
'1',
$logTable,
implode(' AND ',
array(
Expand All @@ -195,7 +195,7 @@ public function preprocessRequest($parameter, $parentObject)
)
);

if ($existingLog === 0) {
if ($existingLog === false) {
$db->exec_INSERTquery($logTable, $insertFields);
}
}
Expand Down

0 comments on commit 6fac00d

Please sign in to comment.