Update media type method

This commit is contained in:
Samuel Holtzkampf 2016-05-04 09:36:36 +02:00
parent b8b968cbdd
commit afcfb59ae5

View file

@ -85,7 +85,7 @@ public class MediaTypeUtil {
* @return the mime type
*/
public static String getMediaTypeFromFilename(String fileName) {
String ext = fileName.substring(fileName.lastIndexOf(".") + 1);
String ext = fileName.substring(fileName.lastIndexOf('.') + 1);
return getMediaTypeFromExt(ext);
}