From aeb20675dd9679331b0de8f7ebf72ed0b0815742 Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Tue, 22 Sep 2015 14:39:02 +0100 Subject: Allow recursive mimetype aliases application/xml -> text/html -> text/code --- lib/private/files/type/detection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/files') diff --git a/lib/private/files/type/detection.php b/lib/private/files/type/detection.php index 0c647ab44c6..dc8aff2f30c 100644 --- a/lib/private/files/type/detection.php +++ b/lib/private/files/type/detection.php @@ -269,7 +269,7 @@ class Detection implements IMimeTypeDetector { public function mimeTypeIcon($mimetype) { $this->loadAliases(); - if (isset($this->mimeTypeAlias[$mimetype])) { + while (isset($this->mimeTypeAlias[$mimetype])) { $mimetype = $this->mimeTypeAlias[$mimetype]; } if (isset($this->mimetypeIcons[$mimetype])) { -- cgit v1.2.3