Skip to content

Commit

Permalink
SA-CORE-2024-001 by s73, douggreen, larowlan, benjifisher, poker10, x…
Browse files Browse the repository at this point in the history
…jm, lauriii
  • Loading branch information
xjm committed Jan 16, 2024
1 parent cc4faaa commit 2ecd415
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/modules/system/src/PathBasedBreadcrumbBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Drupal\Core\Url;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
Expand Down Expand Up @@ -237,6 +238,9 @@ protected function getRequestForPath($path, array $exclude) {
catch (AccessDeniedHttpException $e) {
return NULL;
}
catch (NotFoundHttpException $e) {
return NULL;
}
}

}

0 comments on commit 2ecd415

Please sign in to comment.