[TYPO3-core] RFC: #3819: t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') delivers wrong value in Backend
Steffen Kamper
info at sk-typo3.de
Sun Aug 8 16:39:40 CEST 2010
Hi,
this is a SVN patch request.
Type: Bugfix
BT Reference: http://bugs.typo3.org/view.php?id=3819
Branches: 4_2, 4_3, 4_4, trunk
(original 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/.
In my tests i get wrong path when using installation in subdirectory. it
delivers the apache document root instead of the subdir.
Attached patch is very simple and fixes this. It also works with a
symlinked installation.
Many other problems are based on this problem, so if this is fixed, some
problems are solved automatically. let's fix this 4 year old bug!
vg Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3819.diff
Type: text/x-patch
Size: 1300 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100808/c56e1ebb/attachment-0001.bin>
More information about the TYPO3-team-core
mailing list