We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1967339 commit 6f1faeeCopy full SHA for 6f1faee
wcfsetup/install/files/lib/system/worker/FileRebuildDataWorker.class.php
@@ -96,9 +96,9 @@ private function fixMimeType(): void
96
$width = $height = null;
97
if (\str_starts_with($mimeType, 'image/')) {
98
$data = @\getimagesize($file->getPathname());
99
- if ($data === null) {
+ if ($data === false) {
100
// Treat broken images as binary files.
101
- $mimeType === 'application/octet-stream';
+ $mimeType = 'application/octet-stream';
102
$detectedFileExtension = 'bin';
103
104
if ($file->mimeType === $mimeType) {
0 commit comments