#16335t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') delivers wrong value in Backend
Description
When in backend mode, t3lib_div::getIndpEnv() delivers a wrong value when asked for ‘TYPO3_DOCUMENT_ROOT’. When the root of your TYPO3-Installation is e.g. located in /srv/www/htdocs/t3inst/, it returns /srv/www/htdocs/t3inst/typo3/.
I suppose this happens because getIndpEnv uses SCRIPT_FILENAME for getting the document-root. When in backend-mode, this path is {real doc-root}/typo3/xyz.php, so the
Additionally, the value is always wrong when the whole TYPO3-dir is a symlink to another location, e.g. when /srv/www/htdocs/t3inst/ points to /srv/www/t3inst-real/.
(issue imported from #M3819)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.