projects
/
Packages
/
TYPO3.CMS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[BUGFIX] EXT:form - catch exceptions within page module and form engine
[Packages/TYPO3.CMS.git]
/
typo3
/
sysext
/
form
/
Classes
/
Mvc
/
Configuration
/
YamlSource.php
diff --git
a/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php
b/typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php
index
31afdd3
..
d342c54
100644
(file)
--- a/
typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php
+++ b/
typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php
@@
-70,6
+70,12
@@
class YamlSource
if ($fileToLoad instanceof File) {
$fileIdentifier = $fileToLoad->getIdentifier();
$rawYamlContent = $fileToLoad->getContents();
if ($fileToLoad instanceof File) {
$fileIdentifier = $fileToLoad->getIdentifier();
$rawYamlContent = $fileToLoad->getContents();
+ if ($rawYamlContent === false) {
+ throw new NoSuchFileException(
+ 'The file "' . $fileToLoad . '" does not exist.',
+ 1498802253
+ );
+ }
} else {
$fileIdentifier = $fileToLoad;
$fileToLoad = GeneralUtility::getFileAbsFileName($fileToLoad);
} else {
$fileIdentifier = $fileToLoad;
$fileToLoad = GeneralUtility::getFileAbsFileName($fileToLoad);