Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] chore(mp3info): apply upstream patch for invalid array access #46306

Merged
merged 2 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/private/Preview/MP3.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,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 @@ -52,9 +52,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
Loading