Project

General

Profile

Actions

Bug #79881

closed

File list breaks on SVG files with invalid XML

Added by Tim Spiekerkötter about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2017-02-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint

Description

When the File list tries to read information from an SVG file that has no valid XML inside the modules breaks for that directory.

This is because ImageInfo uses simplexml_load_string and does not check for it's return type.

Error:

Uncaught TYPO3 Exception
Call to a member function attributes() on boolean 

Error thrown in file
/html/vendor/typo3/cms/typo3/sysext/core/Classes/Type/File/ImageInfo.php in line 94.
Actions

Also available in: Atom PDF