[TYPO3-core] RFC #5260:Function linkWrapFile() in file class.file_list.inc uses wrong PATH prefix
Benjamin Mack
benni at typo3.org
Fri Dec 25 10:31:58 CET 2009
Hey all,
merry christmas! This is a SVN patch request.
Severity: medium / easy fix
Branches: 4.2, 4.3, trunk
BT ref: http://bugs.typo3.org/view.php?id=5260
Problem:
When clicking on a file in the file list, it opens up the file in a new
window. The opening link is calculated wrong though, as it takes the
absolute path and strips the DOCUMENT_ROOT path from it, making this to
NOT work on any TYPO3 installation that is not installed on the
DOCUMENT_ROOT.
Solution:
Taking the PATH_site instead of the Document Root does the trick.
Steps to reproduce:
Have an installation under
http://localhost/~myuser/myinstallation/
then try open up a file in the filelist by clicking on the file name.
All the best,
Benni.
More information about the TYPO3-team-core
mailing list