aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel <mail@danielkesselberg.de>2024-07-04 14:25:18 +0200
committerGitHub <noreply@github.com>2024-07-04 14:25:18 +0200
commit8b3055ce592063ca8171ea640bb9d02aa76a92d7 (patch)
tree24722cf5c5f9336c0caa9f6c5c08b67eab55d7b7
parentbd7b09a7092b5094f38b9a5a5cc51c2592232dd7 (diff)
parent37454eb2006e0130b0988dfe986b6d742e83a6d3 (diff)
downloadnextcloud-server-8b3055ce592063ca8171ea640bb9d02aa76a92d7.tar.gz
nextcloud-server-8b3055ce592063ca8171ea640bb9d02aa76a92d7.zip
Merge pull request #46276 from nextcloud/3rdparty/patch-mp3info
chore(mp3info): apply upstream patch for invalid array access
m---------3rdparty0
-rw-r--r--lib/private/Preview/MP3.php8
2 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty b/3rdparty
-Subproject 45d8fc9e09fbb4d3c4de5819afd9a6f72ce00f5
+Subproject 72598ddd873afd5643d62ddfc4d962d04b2b451
diff --git a/lib/private/Preview/MP3.php b/lib/private/Preview/MP3.php
index 59b791950b8..105b182b415 100644
--- a/lib/private/Preview/MP3.php
+++ b/lib/private/Preview/MP3.php
@@ -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 {