Task #75178
closedUse file_get_contents instead of getUrl()
100%
Description
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.
Updated by Gerrit Code Review over 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47309
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47309
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47309
Updated by Gerrit Code Review over 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47309
Updated by Benni Mack over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 94a579e188343168cbb2faf8b7ad8c67e2af0756.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed