diff --git a/Classes/Hooks/JumpurlController.php b/Classes/Hooks/JumpurlController.php index d514c4633..1a86ef297 100644 --- a/Classes/Hooks/JumpurlController.php +++ b/Classes/Hooks/JumpurlController.php @@ -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); } @@ -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( @@ -195,7 +195,7 @@ public function preprocessRequest($parameter, $parentObject) ) ); - if ($existingLog === 0) { + if ($existingLog === false) { $db->exec_INSERTquery($logTable, $insertFields); } }