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 9da2963 commit 2927e38Copy full SHA for 2927e38
1 file changed
lib/private/Preview/SVG.php
@@ -98,7 +98,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
98
*/
99
protected function canBeProcessed(string $content): bool {
100
// check for allowed encodings and convert if necessary
101
- $encoding = mb_detect_encoding($content, ['UTF-8', 'ISO-2022-JP', 'ISO-8859-1'], true);
+ $encoding = mb_detect_encoding($content, ['ISO-2022-JP', 'UTF-8', 'ISO-8859-1'], true);
102
if ($encoding === false) {
103
return false;
104
} elseif ($encoding !== 'UTF-8') {
0 commit comments