summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-29 15:34:24 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-29 15:34:24 +0000
commit8e7edfc410c5bdc76e61c7441efb2fd8b852023a (patch)
tree746a5db7ce1e80b5f4b5e2551a641b56111ff6f1 /roundcubemail/program
parent3c7c027dc9f358c3f778f2dc24516bc02935812d (diff)
Little improvement in mime-detection as suggested in #1485296
git-svn-id: https://svn.roundcube.net/trunk@1707 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcube_shared.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc
index 000483ef8..d82b1fef0 100644
--- a/roundcubemail/program/include/rcube_shared.inc
+++ b/roundcubemail/program/include/rcube_shared.inc
@@ -569,7 +569,7 @@ function rc_mime_content_type($path, $failover = 'unknown/unknown')
finfo_close($finfo);
}
}
- else if (function_exists('mime_content_type')) {
+ if (!$mime_type && function_exists('mime_content_type')) {
$mime_type = mime_content_type($path);
}