Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
  • typo3
  • typo3
  • sysext
  • core
  • Classes
  • Core
  • SystemEnvironmentBuilder.php
Find file BlameHistoryPermalink
  • Oliver Hader's avatar
    [BUGFIX] Correctly resolve instance script path · 24c5608c
    Oliver Hader authored Mar 22, 2022 and Benjamin Franzke's avatar Benjamin Franzke committed May 03, 2022
    Calling a site using http://example.org/index.php/invalid/ leads to
    ~/index.php/whatever/ being used as internal script path, which causes
    errors or internal side-effects.
    
    This behavior seems to occur only on web-servers using Apache with
    PHP-CGI or PHP-FPM, using PHP setting `cgi.fix_pathinfo = 1`.
    
    In case `cgi.fix_pathinfo` is enabled, the current script name is
    retrieved from `$_SERVER['SCRIPT_FILENAME']` instead.
    
    Resolves: #97543
    Releases: main, 11.5, 10.4
    Change-Id: Ia5f6b705253d42d4fc409b90b21d0363c4b97974
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74504
    
    
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
    Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
    Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
    Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    24c5608c