Bug #82787
closedReediting link in ckeditor leads to exception
100%
Description
htmlspecialchars() expects parameter 1 to be string, null given TypeError thrown in file /usr/local/share/typo3/typo3_src-8.7.8/typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php in line 387.
Reproduce:
- Activate relAttribute in ckeditor configuration with
buttons: link: relAttribute: enabled: true
- Set a link in ckeditor
- click on the link button again
Change
$currentRel = $this->displayedLinkHandler === $this->currentLinkHandler && !empty($this->currentLinkParts) ? $this->linkAttributeValues['rel'] : '';
to
$currentRel = $this->displayedLinkHandler === $this->currentLinkHandler && !empty($this->currentLinkParts) && !is_null($this->linkAttributeValues['rel']) ? $this->linkAttributeValues['rel'] : '';
in line 376
Updated by Gerrit Code Review over 7 years ago
- Status changed from New 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 https://review.typo3.org/54415
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54415
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54434
Updated by Christoph Lehmann over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e552bb4256f14ee062532f5a9bb2f0c634ebf7aa.
Updated by Frans Saris over 7 years ago
- Has duplicate Bug #82963: Editing of links with empty rel attribute causes exception in ckeditor added
Updated by Frans Saris over 7 years ago
- Related to Bug #83137: Editing of links results in an exception when the 'rel' attribute is enabled added