Skip to content
Snippets Groups Projects
Commit 61602bc2 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] Do not store bollocks markup in icon cache

In very rare cases it may happen that a backend session is not valid
anymore when an icon is loaded within the TYPO3 backend. If the icon
is not in the user's localStorage, the TYPO3 backend login is stored
in localStorage instead.

To catch this issue in the future, additional checks were implemented:

* the response shall not come from a redirected request, which could be
  an indicator for unwanted markup
* the received markup must start with "<span"

Resolves: #101339
Releases: main, 12.4, 11.5
Change-Id: Ic30672b770b7d12aa078e423cb595966247d5506
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80016


Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent f0548332
Branches
Tags
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