Closed m41r closed 2 years ago
@m41r thanks for the hint, I'll take a look at it. As this is only valid for TYPO3 CMS 11, we possibly need a different solution here.
@wazum Well, the new code works independently of the Typo3 and PHP version...
@m41r no, it doesn't, as the checksum
field in sys_file_processedfile
is only 10 characters long in TYPO3 CMS < 11, that's not enough for a 32 character md5 string, you cut it, but that doesn't fix the original problem/intent of the change.
I'll add a condition and use the full md5 string for newer versions (or so).
@wazum yes, you're right - i thought just about the code, not the DB or the intent. My bad...
I'll add a condition and use the full md5 string for newer versions (or so).
That would be perfect. Thank you!
Code removed, as the repository always regenerates the hash anyway.
As of https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.4/Deprecation-94684-GeneralUtilityShortMD5.html the Utility "GeneralUtility::shortMD5" has been deprecated and will be replaced with the native counterpart.