Merge pull request #46341 from nextcloud/backport/46276/stable28

[stable28] chore(mp3info): apply upstream patch for invalid array access
This commit is contained in:
Daniel 2024-07-08 12:43:00 +02:00 committed by GitHub
commit a8a7c4cf26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit 1ce7a1b64712a3d7bc55f13ab2948cb24c8a055a
Subproject commit 8f33862805b36e4fc8efc6bc5459f5d47c7bc9d6

View file

@ -30,8 +30,8 @@ namespace OC\Preview;
use OCP\Files\File;
use OCP\IImage;
use Psr\Log\LoggerInterface;
use wapmorgan\Mp3Info\Mp3Info;
use function OCP\Log\logger;
class MP3 extends ProviderV2 {
/**
@ -52,9 +52,9 @@ class MP3 extends ProviderV2 {
/** @var string|null|false $picture */
$picture = $audio->getCover();
} catch (\Throwable $e) {
\OC::$server->get(LoggerInterface::class)->info($e->getMessage(), [
'exception' => $e,
'app' => 'core',
logger('core')->info('Error while getting cover from mp3 file: ' . $e->getMessage(), [
'fileId' => $file->getId(),
'filePath' => $file->getPath(),
]);
return null;
} finally {