Bug #66083
closed
rendering of external links looses trailing slash
Added by Bernd Wilke almost 10 years ago.
Updated over 6 years ago.
Description
in rte:
<a href="http://domain.local/wannen/" data-htmlarea-external="1">Wannen</a>
in database (pi_flexform subfield):
<link http://domain.local/wannen/>Wannen</link>
or
<a href="http://domain.local/wannen/" data-htmlarea-external="1">Wannen</a>
rendered with 6.2.9:
<a href="http://domain.local/wannen/">Wannen</a>
rendered with 6.2.11:
<a href="http://domain.local/wannen">Wannen</a>
- Target version set to next-patchlevel
the error is based on the commit #94c88f 15-01-15
links are stored as TYPO3 internal link tag without correct parameter structure (enclosed in quotes). in this way an external link to http://domain.local/wannen/ is stored as
<link http://domain.local/wannen/>Wannen</link>
the commit 'cleans' shortcut-tags and identifies the trailing slash as tag closing. in this way the link url is modified
- Status changed from New to Accepted
- Assignee set to Nicole Cordes
Could quickly fix it in current master to modify line typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:5074 from
if (substr($data, -2) === '/>') {
into
if (StringUtility::endsWith('/>', $data) && !StringUtility::beginsWith($data, '<link')) {
Then only tag that ends with '/>' and is not a self-closing tag is in the form '<link http://example.org/>' .
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38379
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38380
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38380
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF