Skip to content
Snippets Groups Projects
Commit a26e0ad5 authored by Stefan Bürk's avatar Stefan Bürk Committed by Benjamin Franzke
Browse files

[TASK] Avoid reading languagefiles if argument is empty

'LanguageService->sL()' could be called with an empty
input string, thus reading language files and caching
the result is superflous.

This patch adds an early check and return to 'sL()'
to mitigate that.

Resolves: #96666
Releases: main, 11.5
Change-Id: Ib97958be6f4ffbd96cdfc158c9307f5007d31f2f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73163


Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
parent 4ffde6f4
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