[BUGFIX] Catch InvalidPathException in BE & FE
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Element / InputLinkElement.php
index 5dd841c..db2c12d 100644 (file)
@@ -21,6 +21,7 @@ use TYPO3\CMS\Core\LinkHandling\LinkService;
 use TYPO3\CMS\Core\Localization\LanguageService;
 use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
 use TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException;
+use TYPO3\CMS\Core\Resource\Exception\InvalidPathException;
 use TYPO3\CMS\Core\Resource\File;
 use TYPO3\CMS\Core\Resource\Folder;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
@@ -316,6 +317,8 @@ class InputLinkElement extends AbstractFormElement
             return $data;
         } catch (UnknownLinkHandlerException $e) {
             return $data;
+        } catch (InvalidPathException $e) {
+            return $data;
         }
 
         // Resolving the TypoLink parts (class, title, params)