Project

General

Profile

Actions

Bug #82787

closed

Reediting link in ckeditor leads to exception

Added by Christoph Lehmann over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-10-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
ckeditor
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #83137: Editing of links results in an exception when the 'rel' attribute is enabledRejected2017-11-28

Actions
Has duplicate TYPO3 Core - Bug #82963: Editing of links with empty rel attribute causes exception in ckeditorRejected2017-11-10

Actions
Actions

Also available in: Atom PDF