Commit f5c4ece1 authored by Markus Klein's avatar Markus Klein Committed by Wouter Wolters
Browse files

[BUGFIX] Handle invalid link strings gracefully in LinkHandler

Resolves: #79623
Releases: master
Change-Id: Iefef14b968d4edfbfbe221ee5b58e3947d5f0d9c
Reviewed-on: https://review.typo3.org/51530


Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarThomas Hohn <thomas@hohn.dk>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent ec71cf95
......@@ -58,12 +58,10 @@ class UrlLinkHandler extends AbstractLinkHandler implements LinkHandlerInterface
*/
public function canHandleLink(array $linkParts)
{
if (!$linkParts['url']) {
if (!isset($linkParts['url']['url'])) {
return false;
}
if (isset($linkParts['url']['url'])) {
$linkParts['url'] = $linkParts['url']['url'];
}
$linkParts['url'] = $linkParts['url']['url'];
$this->linkParts = $linkParts;
return true;
......
Supports Markdown
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