Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T TYPO3.CMS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • accessibilityaccessibility
  • TYPO3.CMS
  • Repository
Switch branch/tag
  • TYPO3.CMS
  • typo3
  • sysext
  • backend
  • Classes
  • Controller
  • BackendController.php
Find file BlameHistoryPermalink
  • Benni Mack's avatar
    [TASK] Use file_get_contents instead of getUrl() · 94a579e1
    Benni Mack authored Mar 18, 2016
    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's avatarPhilipp Gampe <philipp.gampe@typo3.org>
    Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
    Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
    Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Reviewed-by: default avatarDaniel Gorges <daniel.gorges@b13.de>
    Tested-by: default avatarDaniel Gorges <daniel.gorges@b13.de>
    Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    94a579e1