diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index 966f6c1f520e7fdfebef6865b9593bd84d1ee14b..65298a83b372a68676391048622c610da7e117d1 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -3015,41 +3015,6 @@ class GeneralUtility return $tempFileName; } - /** - * Standard authentication code (used in Direct Mail, checkJumpUrl and setfixed links computations) - * - * @param mixed $uid_or_record Uid (int) or record (array) - * @param string $fields List of fields from the record if that is given. - * @param int $codeLength Length of returned authentication code. - * @return string MD5 hash of 8 chars. - * @deprecated since v11, will be removed in v12. - */ - public static function stdAuthCode($uid_or_record, $fields = '', $codeLength = 8) - { - trigger_error( - 'GeneralUtility::stdAuthCode() is deprecated and will be removed in v12.', - E_USER_DEPRECATED - ); - - if (is_array($uid_or_record)) { - $recCopy_temp = []; - if ($fields) { - $fieldArr = self::trimExplode(',', $fields, true); - foreach ($fieldArr as $k => $v) { - $recCopy_temp[$k] = $uid_or_record[$v]; - } - } else { - $recCopy_temp = $uid_or_record; - } - $preKey = implode('|', $recCopy_temp); - } else { - $preKey = $uid_or_record; - } - $authCode = $preKey . '||' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']; - $authCode = substr(md5($authCode), 0, $codeLength); - return $authCode; - } - /** * Responds on input localization setting value whether the page it comes from should be hidden if no translation exists or not. * diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-96107-DeprecatedFunctionalityRemoved.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-96107-DeprecatedFunctionalityRemoved.rst index bd6c64e14e247258b97f73ebe28986f3e576220d..340ed88069ebb2b5d1738943f31d13aab207a09b 100644 --- a/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-96107-DeprecatedFunctionalityRemoved.rst +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-96107-DeprecatedFunctionalityRemoved.rst @@ -41,6 +41,7 @@ The following PHP class methods that have previously been marked as deprecated f The following PHP static class methods that have previously been marked as deprecated for v11 and were now removed: - :php:`\TYPO3\CMS\Backend\Utility\BackendUtility::fixVersioningPid()` +- :php:`\TYPO3\CMS\Core\Utility\GeneralUtility::stdAuthCode()` The following methods changed signature according to previous deprecations in v11 at the end of the argument list: diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php index ea70a66b5e7cdada3a131f121be46762309c77e5..c782c9ac0bc0ce6a55f32c188337d966fa41c4cb 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php @@ -1085,6 +1085,7 @@ return [ 'maximumNumberOfArguments' => 3, 'restFiles' => [ 'Deprecation-94309-DeprecatedGeneralUtilitystdAuthCode.rst', + 'Breaking-96107-DeprecatedFunctionalityRemoved.rst', ], ], 'TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList' => [