SA-CORE-2024-001 by s73, douggreen, larowlan, benjifisher, poker10, xjm, lauriii

(cherry picked from commit 2ecd4151a4)
merge-requests/6216/head
xjm 2024-01-16 15:10:48 -06:00
parent 0a58c45e7d
commit dac8ef1848
No known key found for this signature in database
GPG Key ID: 206B0B8743BDF4C2
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}
}