Skip to content

Commit deee420

Browse files
committed
fix(Preview): reorder encodings for detection
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 31bc443 commit deee420

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Preview/SVG.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
8989
*/
9090
protected function canBeProcessed(string $content): bool {
9191
// check for allowed encodings and convert if necessary
92-
$encoding = mb_detect_encoding($content, ['UTF-8', 'ISO-2022-JP', 'ISO-8859-1'], true);
92+
$encoding = mb_detect_encoding($content, ['ISO-2022-JP', 'UTF-8', 'ISO-8859-1'], true);
9393
if ($encoding === false) {
9494
return false;
9595
} elseif ($encoding !== 'UTF-8') {

0 commit comments

Comments
 (0)