Project

General

Profile

Actions

Bug #63306

closed

frontend does not check for file:123 format when parsing html

Added by Nils Blattner almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
-
Start date:
2014-11-24
Due date:
% Done:

0%

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

Description

Hi there

The sysext frontend does not check that "<link file:"-links actually contain a numeric value (when parsing RTE output) and just forces it to be a FAL-link automatically.
If one uses the possibility of "file:\\netmount\foo\bar.doc" links, the rendered bodytext just contains the text, as there was no FAL-record (uid = 0) found.

Attached patch solves at least the frontend output.

Cheers


Files

Actions #1

Updated by Tizian Schmidlin almost 10 years ago

Actually, is_int is too aggressive and since $linkHandlerValue is a string it will never match. Use this instead:

            if ($linkHandlerKeyword === 'file' && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($linkHandlerValue)) {
Actions #2

Updated by Riccardo De Contardi over 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Nils Blattner

Could you tell us if this could be closed? Thank you

Actions #3

Updated by Nils Blattner over 9 years ago

Should be OK in the latest 6.2.

Cheers

Actions #4

Updated by Riccardo De Contardi over 9 years ago

  • Status changed from Needs Feedback to Closed

Thank you Nils; I close it for now.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF