SA-CORE-2024-001 by s73, douggreen, larowlan, benjifisher, poker10, xjm, lauriii
(cherry picked from commit 2ecd4151a4
)
merge-requests/6216/head
parent
0a58c45e7d
commit
dac8ef1848
|
@ -21,6 +21,7 @@ use Drupal\Core\StringTranslation\StringTranslationTrait;
|
|||
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;
|
||||
|
@ -237,6 +238,9 @@ class PathBasedBreadcrumbBuilder implements BreadcrumbBuilderInterface {
|
|||
catch (AccessDeniedHttpException $e) {
|
||||
return NULL;
|
||||
}
|
||||
catch (NotFoundHttpException $e) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue