Skip to content
Snippets Groups Projects
Commit c44acaaa authored by Thomas Hohn's avatar Thomas Hohn Committed by Benni Mack
Browse files

[BUGFIX] Fix array access in ImageContentObject

If an image has been deleted and marked missing in
sys_file, the cImage method tries to access $info[3]
which is null.
Added a null coalescing operator around the access
to $info[3].
The code has been rewritten in TYPO3 v12 and will
ensure that value of $info[3] is a string.

Resolves: #100132
Releases: 11.5
Change-Id: I152f8cc8fe74afb5513c023b0774c23e9f8134a8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78086


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent c57360c0
Branches
Tags
No related merge requests found
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