mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 04:43:20 -04:00
Merge pull request #46276 from nextcloud/3rdparty/patch-mp3info
chore(mp3info): apply upstream patch for invalid array access
This commit is contained in:
commit
8b3055ce59
2 changed files with 5 additions and 5 deletions
2
3rdparty
2
3rdparty
|
|
@ -1 +1 @@
|
|||
Subproject commit 45d8fc9e09fbb4d3c4de5819afd9a6f72ce00f56
|
||||
Subproject commit 72598ddd873afd5643d62ddfc4d962d04b2b4519
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue