Skip to content

Commit

Permalink
Merge pull request #46276 from nextcloud/3rdparty/patch-mp3info
Browse files Browse the repository at this point in the history
chore(mp3info): apply upstream patch for invalid array access
  • Loading branch information
kesselb authored Jul 4, 2024
2 parents bd7b09a + 37454eb commit 8b3055c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/private/Preview/MP3.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

use OCP\Files\File;
use OCP\IImage;
use Psr\Log\LoggerInterface;
use wapmorgan\Mp3Info\Mp3Info;
use function OCP\Log\logger;

class MP3 extends ProviderV2 {
/**
Expand All @@ -31,9 +31,9 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
/** @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 {
Expand Down

0 comments on commit 8b3055c

Please sign in to comment.