Commit 8146446c authored by Lidia Demin's avatar Lidia Demin Committed by Andreas Fernandez
Browse files

[BUGFIX] Check if file exists for backend logo

If an invalid file path is given, an exception is thrown if trying to
access its properties and the backend is not accessible any more.
Check if file exists before accessing. If not use default.

Resolves #84791
Releases: master, 8.7

Change-Id: Ide4c58dd03cbad1ed06ad66f558d170cd2170482

Tested-by: default avatarTYPO3com <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Kay Strobach's avatarKay Strobach <>
Tested-by: Kay Strobach's avatarKay Strobach <>
Reviewed-by: default avatarMathias Schreiber <>
Tested-by: default avatarMathias Schreiber <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
parent 49e42af8
......@@ -291,7 +291,7 @@ class BackendController
// if no custom logo was set or the path is invalid, use the original one
if (empty($logoPath)) {
if (empty($logoPath) || !file_exists($logoPath)) {
$logoPath = GeneralUtility::getFileAbsFileName('EXT:backend/Resources/Public/Images/typo3_logo_orange.svg');
$logoWidth = 22;
$logoHeight = 22;
Supports Markdown
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