Project

General

Profile

Actions

Bug #17132

closed

Function linkWrapFile() in file class.file_list.inc uses wrong PATH prefix.

Added by Patrick Rodacker about 17 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2007-03-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

one of our developers encountered a problem when trying to view a css file from within the filelist module und her user environment. The absolute url of the file was similar to:

http://mydomain.com/~username/project/fileadmin/templates/css/file.css

When trying to view the file by clicking the files name, the url of the newly opened window was somethink like this:

http://mydomain.com/project/fileadmin/templates/css/file.css

after having a closer look, I was able to get to the bottom of it:

The function linkWrapFile() in file class.file_list.inc takes the absolute path of the file in the filesystem and strips of the string of the document root. The remaining path is passed to the javascript function openUrlInWindow(). If you have a project setting where the location of the file in the filesystem is not similar to the location representation of the webserver, the file can't be found and the newly opened window shows an error.

I would suggest to pass the absolute path to the javascript function including the TYPO3_SITE_URL.

I will include a patch later.

(issue imported from #M5260)


Files

bug_5260.diff (790 Bytes) bug_5260.diff Administrator Admin, 2007-03-20 15:50
5260_v2.patch (806 Bytes) 5260_v2.patch Administrator Admin, 2009-12-25 10:26
Actions

Also available in: Atom PDF