Only collect image data if the mime-type is image/* (bug #2913).
Bit of a rough check, but it should be save. Invalid or empy svg files are not detected as image/svg+xml. Another advantage is that not all files are loaded to check if it is an image, only files that look like images.
Loading
Please register or sign in to comment