Bug #66083
closedrendering of external links looses trailing slash
100%
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>
Updated by Bernd Wilke over 9 years ago
- 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
Updated by Nicole Cordes over 9 years ago
- Status changed from New to Accepted
- Assignee set to Nicole Cordes
Updated by Jigal van Hemert over 9 years ago
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/>' .
Updated by Gerrit Code Review over 9 years ago
- 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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Nicole Cordes over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1040bc164b20d3da2e53af301b41eb2f824a0a72.