[TYPO3-core] RFC #10331: Bug: linkHandler different than "record" leads to rteerror

Martin Holtz typo3ng_2008 at martinholtz.de
Tue Feb 3 11:04:17 CET 2009


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=10331

Branches:
TYPO3_4-3 trunk

Problem:
We have an hook for different linkhandler. So it is possible to use
<link commerce:tx_commerce_products:66> to link to an product.
But if that link is send to the rte, it will be wrapped by an warning
span, because in TS_links_rte accepts only <link record:...>


Solution:
Check in
typo3_src/t3lib/class.t3lib_parsehtml_proc.php->TS_links_rte($value) for
all registered linkhandlers. If no linkhandler for "record" is
registert, we will get an error too.

Notes:
I added the modified extension linkhandler to the bug, so you should be
able to simply reproduce the bug:)


Test this issue:

1.) Install linkhandler extension.
2.) create content element, disable rte and put into
<link
commerce:tx_commerce_products:66|tx_commerce_categories:5>LinkText</link>

3.) save content element, enable rte and save again. Disable rte again,
you will get:

<span style="border: 2px solid red; background-color: yellow; color:
black;"><link commerce:tx_commerce_products:66|tx_commerce_categories:5 -

internal-link>LinkText</link></span>

4.) apply patch. Do Step 1-3 you should not get the span again

5.) test than
<link
somedifferent:tx_commerce_products:66|tx_commerce_categories:5>LinkText</link>

should be wrapped in Error: <span ...> again


regards,
martin


More information about the TYPO3-team-core mailing list