Issue Bug Closed

#79881File list breaks on SVG files with invalid XML

Tim Spiekerkötter 02/17/17, 13:23 updated 10/02/18, 11:02

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.

Reviews 3