Skip to content
Snippets Groups Projects
Commit 58c15109 authored by Markus Klein's avatar Markus Klein Committed by Richard Haeser
Browse files

[BUGFIX] Fix double encoding of current page link in link wizard

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: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Tested-by: default avatarRichard Haeser <richard@maxserv.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Reviewed-by: default avatarRichard Haeser <richard@maxserv.com>
parent ca899ef7
Branches
Tags
No related merge requests found
......@@ -88,8 +88,8 @@ class PageLinkHandler extends AbstractLinkHandler implements LinkHandlerInterfac
$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'] : '') . ')';
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment