fix bug in isMediaThumbnailSupported

This commit is contained in:
jmillman 2016-03-22 15:23:04 -04:00
parent 60ee20c9ef
commit 341fbf836c

View File

@ -246,7 +246,7 @@ public class ImageUtils {
} else {
try {
String mimeType = getFileTypeDetector().detect(file);
if (StringUtils.isNotBlank(mimeTypePrefix) && mimeTypePrefix.startsWith(mimeTypePrefix)) {
if (StringUtils.isNotBlank(mimeTypePrefix) && mimeType.startsWith(mimeTypePrefix)) {
return true;
}
return supportedMimeTypes.contains(mimeType);