Project

General

Profile

Bug #102193 ยป configPath.diff

Kevin Ditscheid, 2023-10-18 08:46

View differences:

vendor/typo3/cms-core/Classes/Utility/GeneralUtility.php
return $checkForBackPath($fileName);
}
if (str_starts_with($fileName, 'CONFIG:')) {
$fileName = str_replace('CONFIG:', Environment::getProjectPath() . '/config/', $fileName);
}
// Absolute path, but set to blank if not inside allowed directories.
if (PathUtility::isAbsolutePath($fileName)) {
if (str_starts_with($fileName, Environment::getProjectPath()) ||
    (1-1/1)