-
benni authored
The method GeneralUtility::getUrl() is used a lot in the core where only local files are allowed. Most occurrences can be replaced by using the native file_get_contents() PHP function. file_get_contents() is now always used when * is_file() is called * only local paths (e.g. prefixed with PATH_site) * absolute paths (GeneralUtility::getFileAbsFileName) * ensured that files within extensions are checked before. In these cases getUrl() MUST NOT BE USED but built-in file_get_contents() must be used instead. Resolves: #75178 Releases: master Change-Id: Ia88879d8fa44fd88e604b3332c1a710c33e5d3ec Reviewed-on: https://review.typo3.org/47309 Reviewed-by:
Philipp Gampe <philipp.gampe@typo3.org> Reviewed-by:
Andreas Fernandez <typo3@scripting-base.de> Tested-by:
Andreas Fernandez <typo3@scripting-base.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Daniel Gorges <daniel.gorges@b13.de> Tested-by:
Daniel Gorges <daniel.gorges@b13.de> Reviewed-by: ...
94a579e1