Bug #84488 ยป diff.patch
typo3/sysext/linkvalidator/Classes/Linktype/FileLinktype.php | ||
---|---|---|
15 | 15 |
*/ |
16 | 16 | |
17 | 17 |
use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException; |
18 |
use TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException; |
|
18 | 19 |
use TYPO3\CMS\Core\Resource\ResourceFactory; |
19 | 20 |
use TYPO3\CMS\Core\Utility\GeneralUtility; |
20 | 21 | |
... | ... | |
53 | 54 |
$file = $resourceFactory->retrieveFileOrFolderObject($url); |
54 | 55 |
} catch (FileDoesNotExistException $e) { |
55 | 56 |
return false; |
57 |
} catch (FolderDoesNotExistException $e) { |
|
58 |
return false; |
|
56 | 59 |
} |
57 | 60 |
return !$file->isMissing(); |
58 | 61 |
} |
59 | ||
60 | 62 |
/** |
61 | 63 |
* Generate the localized error message from the error params saved from the parsing |
62 | 64 |
* |