Project

General

Profile

Actions

Bug #19654

closed

typolink doesn't check internal files for extistence

Added by Adrian Föder almost 16 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-11-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions #1

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)?

Actions #2

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.

Actions

Also available in: Atom PDF