Skip to content

Commit be8aaf0

Browse files
[BUGFIX] Check that targetUrl exists (#670)
Fixes: #669
1 parent c5306f7 commit be8aaf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/Controller/FrontendEditingModuleController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ public function showAction(ServerRequestInterface $request): ResponseInterface
395395
$targetUrl = $targetUrl . '?frontend_editing=true';
396396
}
397397
} else {
398-
$targetUrl = parse_url($targetUrl)['host'];
398+
if ($targetUrl) {
399+
$targetUrl = parse_url($targetUrl)['host'];
400+
}
399401
$otherDomain = true;
400402
}
401403

0 commit comments

Comments
 (0)