Merge pull request #46276 from nextcloud/3rdparty/patch-mp3info

chore(mp3info): apply upstream patch for invalid array access
This commit is contained in:
Daniel 2024-07-04 14:25:18 +02:00 committed by GitHub
commit 8b3055ce59
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 45d8fc9e09fbb4d3c4de5819afd9a6f72ce00f56
Subproject commit 72598ddd873afd5643d62ddfc4d962d04b2b4519

View file

@ -9,8 +9,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 {
/**
@ -31,9 +31,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 {