Skip to content

Commit

Permalink
Merge pull request #6 from kdambekalns/bugfix/catch-exception-correctly
Browse files Browse the repository at this point in the history
BUGFIX: Catch exception in detectContentStream()
  • Loading branch information
kdambekalns authored Jan 7, 2020
2 parents 701cedc + b7466c9 commit 275e037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Http/DetectContentSubgraphComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ protected function detectContentStream(Http\Component\ComponentContext $componen
$requestPath = $componentContext->getHttpRequest()->getUri()->getPath();
$requestPath = mb_substr($requestPath, mb_strrpos($requestPath, '/'));
if ($requestPath !== '' && NodePaths::isContextPath($requestPath)) {
$nodePathAndContext = NodePaths::explodeContextPath($requestPath);
try {
$nodePathAndContext = NodePaths::explodeContextPath($requestPath);
$contentStreamIdentifier = $nodePathAndContext['workspaceName'];
} catch (\InvalidArgumentException $exception) {
}
Expand Down

0 comments on commit 275e037

Please sign in to comment.