Bug #44440 ยป 44440.patch
typo3/sysext/core/Classes/Html/RteHtmlParser.php | ||
---|---|---|
} elseif ($fileChar) {
|
||
// It is an internal file or folder
|
||
// Try to transform the href into a FAL reference
|
||
$fileOrFolderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($link_param);
|
||
try {
|
||
$fileOrFolderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($link_param);
|
||
} catch(\TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException $e) {
|
||
// no file - nothing to do
|
||
}
|
||
if ($fileOrFolderObject instanceof \TYPO3\CMS\Core\Resource\Folder) {
|
||
// It's a folder
|
||
$folderIdentifier = $fileOrFolderObject->getIdentifier();
|