Project

General

Profile

Bug #59303 ยป bug_59303.diff

Nils Blattner, 2014-06-03 11:22

View differences:

typo3/sysext/core/Classes/Resource/ResourceFactory.php 2014-03-25 18:42:41.000000000 +0100
} else {
return NULL;
}
// this is a backwards-compatible way to access "0-storage" files or folders
} elseif (@is_file(PATH_site . $input)) {
// only the local file
return $this->getFileObjectFromCombinedIdentifier($input);
} else {
// this is a backwards-compatible way to access "0-storage" files or folders
// eliminate double slashes, /./ and /../
$input = \TYPO3\CMS\Core\Utility\PathUtility::getCanonicalPath(ltrim($input, '/'));
if (@is_file(PATH_site . $input)) {
// only the local file
return $this->getFileObjectFromCombinedIdentifier($input);
} else {
// only the local path
return $this->getFolderObjectFromCombinedIdentifier($input);
}
// only the local path
return $this->getFolderObjectFromCombinedIdentifier($input);
}
}
    (1-1/1)