diff --git a/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php b/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php index 3a1a7768c41d541197b02e50b4bf8121b4fcdeb1..924a14fbd69fa83cebb9387f225f3971b594588e 100644 --- a/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php +++ b/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php @@ -195,7 +195,11 @@ class FormEngineUtility { } elseif (substr($icon, 0, 3) == '../') { $selIconFile = GeneralUtility::resolveBackPath($icon); if (is_file(PATH_site . GeneralUtility::resolveBackPath(substr($icon, 3)))) { - $selIconInfo = getimagesize((PATH_site . GeneralUtility::resolveBackPath(substr($icon, 3)))); + if (\TYPO3\CMS\Core\Utility\StringUtility::endsWith($icon, '.svg')) { + $selIconInfo = TRUE; + } else { + $selIconInfo = getimagesize((PATH_site . GeneralUtility::resolveBackPath(substr($icon, 3)))); + } } } elseif (substr($icon, 0, 4) == 'ext/' || substr($icon, 0, 7) == 'sysext/') { $selIconFile = $icon;