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

Oliver Hader oliver at typo3.org
Tue Apr 28 18:07:40 CEST 2009


FYI: Committed to SVN Trunk (rev. 5370)
http://forge.typo3.org/repositories/revision/typo3v4-core/5370

olly


Martin Holtz schrieb:
> 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
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list