Skip to content
Snippets Groups Projects
Commit e3474070 authored by Felix Althaus's avatar Felix Althaus Committed by Markus Klein
Browse files

[BUGFIX] Suppress EXIF warnings indexing images

FileContentParser used to issue a warning trying to index image
files with corrupted EXIF data. Suppress these warnings to fail
silently.

Resolves: #55286
Releases: 6.2, 6.1
Change-Id: I863601f5579ab74a0743ab684cf1d898b633edba
Reviewed-on: https://review.typo3.org/27160
Reviewed-by: Wouter Wolters
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Markus Klein
Tested-by: Markus Klein
parent e1927d2e
No related merge requests found
...@@ -628,7 +628,7 @@ class FileContentParser { ...@@ -628,7 +628,7 @@ class FileContentParser {
$this->setLocaleForServerFileSystem(); $this->setLocaleForServerFileSystem();
// PHP EXIF // PHP EXIF
if (function_exists('exif_read_data')) { if (function_exists('exif_read_data')) {
$exif = exif_read_data($absFile, 'IFD0'); $exif = @exif_read_data($absFile, 'IFD0');
} else { } else {
$exif = FALSE; $exif = FALSE;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment