Skip to content

Commit

Permalink
[BUGFIX] Fix double encoding of current page link in link wizard
Browse files Browse the repository at this point in the history
Remove the double html encoding of the current link in the
PageLinkHandler.

The HTML is encoded centrally in the BrowseLinksController.
All other link handlers already send the plain content correctly.

Resolves: #89773
Releases: master, 9.5
Change-Id: I83ac730f150009c1ef6fc286fa26b4a829b2b412
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62432
Tested-by: Oliver Bartsch <[email protected]>
Tested-by: TYPO3com <[email protected]>
Tested-by: Tobi Kretschmann <[email protected]>
Tested-by: Richard Haeser <[email protected]>
Reviewed-by: Oliver Bartsch <[email protected]>
Reviewed-by: Tobi Kretschmann <[email protected]>
Reviewed-by: Richard Haeser <[email protected]>
  • Loading branch information
liayn authored and Richard Haeser committed Nov 26, 2019
1 parent ca899ef commit 58c1510
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public function formatCurrentUrl()
$id = (int)$this->linkParts['url']['pageuid'];
$pageRow = BackendUtility::getRecordWSOL('pages', $id);

return htmlspecialchars($lang->getLL('page'))
. ' \'' . htmlspecialchars(GeneralUtility::fixed_lgd_cs($pageRow['title'], $titleLen)) . '\''
return $lang->getLL('page')
. ' \'' . GeneralUtility::fixed_lgd_cs($pageRow['title'], $titleLen) . '\''
. ' (ID: ' . $id . ($this->linkParts['url']['fragment'] ? ', #' . $this->linkParts['url']['fragment'] : '') . ')';
}

Expand Down

0 comments on commit 58c1510

Please sign in to comment.