Bug #19654
closedtypolink doesn't check internal files for extistence
0%
Description
Hello folks,
the typolink() function does not really check if the given link target file e.g. "fileadmin/templates/theFile.pdf" exists.
In the function code there is a section where the variable $isLocalFile is set to 2 when the link contains a slash. It is so in our case.
A few lines later there is
elseif ($containsSlash || $isLocalFile) {
...
if (@file_exists(rawurldecode($splitLinkParam0)) || $isLocalFile) {
[linkIt()]
Due to the OR and the value 2 set above the file will be linked although it may not exist.
I think it is a workaround due to SSD or realurl links, because they may look like internal file locations, but in my case it is definately a file location I would like to not being linked in case it does not exist.
Best,
adrian
(issue imported from #M9853)
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.