Loading composer.lock +2 −2 Original line number Diff line number Diff line Loading @@ -9999,8 +9999,8 @@ }, "prefer-stable": true, "prefer-lowest": false, "platform": [], "platform-dev": [], "platform": {}, "platform-dev": {}, "platform-overrides": { "php": "8.1.0" }, Loading core/lib/Drupal/Core/DrupalKernel.php +1 −0 Original line number Diff line number Diff line Loading @@ -779,6 +779,7 @@ protected function handleException(\Exception $e, $request, $type) { if ($e instanceof HttpExceptionInterface) { $response = new Response($e->getMessage(), $e->getStatusCode()); $response->headers->add($e->getHeaders()); $response->headers->set('Content-Type', 'text/plain'); return $response; } Loading core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php +4 −11 Original line number Diff line number Diff line Loading @@ -87,21 +87,14 @@ protected function getHandledFormats() { * The event to process. */ public function on4xx(ExceptionEvent $event) { if (($exception = $event->getThrowable()) && $exception instanceof HttpExceptionInterface) { // Avoid making a subrequest for 400 errors because the same conditions that // caused the 400 error could also happen in the subrequest. This allows 400 // exceptions to fall through to FinalExceptionSubscriber::on4xx. if (($exception = $event->getThrowable()) && $exception instanceof HttpExceptionInterface && $exception->getStatusCode() > 400) { $this->makeSubrequest($event, '/system/4xx', $exception->getStatusCode()); } } /** * Handles a 400 error for HTML. * * @param \Symfony\Component\HttpKernel\Event\ExceptionEvent $event * The event to process. */ public function on400(ExceptionEvent $event): void { throw $event->getThrowable(); } /** * Handles a 401 error for HTML. * Loading core/lib/Drupal/Core/Field/FieldUpdateActionBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public function access($object, ?AccountInterface $account = NULL, $return_as_ob $result = $object->access('update', $account, TRUE); foreach ($this->getFieldsToUpdate() as $field => $value) { $result->andIf($object->{$field}->access('edit', $account, TRUE)); $result = $result->andIf($object->{$field}->access('edit', $account, TRUE)); } return $return_as_object ? $result : $result->isAllowed(); Loading core/modules/views/src/DisplayPluginCollection.php +4 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ use Drupal\Component\Plugin\Exception\PluginException; use Drupal\Component\Plugin\PluginManagerInterface; use Drupal\Core\Plugin\DefaultLazyPluginCollection; use Drupal\views\Plugin\views\display\DisplayPluginInterface; /** * A class which wraps the displays of a view so you can lazy-initialize them. Loading Loading @@ -59,8 +60,10 @@ public function &get($instance_id) { */ public function clear() { foreach (array_filter($this->pluginInstances) as $display) { if ($display instanceof DisplayPluginInterface) { $display->destroy(); } } parent::clear(); } Loading Loading
composer.lock +2 −2 Original line number Diff line number Diff line Loading @@ -9999,8 +9999,8 @@ }, "prefer-stable": true, "prefer-lowest": false, "platform": [], "platform-dev": [], "platform": {}, "platform-dev": {}, "platform-overrides": { "php": "8.1.0" }, Loading
core/lib/Drupal/Core/DrupalKernel.php +1 −0 Original line number Diff line number Diff line Loading @@ -779,6 +779,7 @@ protected function handleException(\Exception $e, $request, $type) { if ($e instanceof HttpExceptionInterface) { $response = new Response($e->getMessage(), $e->getStatusCode()); $response->headers->add($e->getHeaders()); $response->headers->set('Content-Type', 'text/plain'); return $response; } Loading
core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php +4 −11 Original line number Diff line number Diff line Loading @@ -87,21 +87,14 @@ protected function getHandledFormats() { * The event to process. */ public function on4xx(ExceptionEvent $event) { if (($exception = $event->getThrowable()) && $exception instanceof HttpExceptionInterface) { // Avoid making a subrequest for 400 errors because the same conditions that // caused the 400 error could also happen in the subrequest. This allows 400 // exceptions to fall through to FinalExceptionSubscriber::on4xx. if (($exception = $event->getThrowable()) && $exception instanceof HttpExceptionInterface && $exception->getStatusCode() > 400) { $this->makeSubrequest($event, '/system/4xx', $exception->getStatusCode()); } } /** * Handles a 400 error for HTML. * * @param \Symfony\Component\HttpKernel\Event\ExceptionEvent $event * The event to process. */ public function on400(ExceptionEvent $event): void { throw $event->getThrowable(); } /** * Handles a 401 error for HTML. * Loading
core/lib/Drupal/Core/Field/FieldUpdateActionBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public function access($object, ?AccountInterface $account = NULL, $return_as_ob $result = $object->access('update', $account, TRUE); foreach ($this->getFieldsToUpdate() as $field => $value) { $result->andIf($object->{$field}->access('edit', $account, TRUE)); $result = $result->andIf($object->{$field}->access('edit', $account, TRUE)); } return $return_as_object ? $result : $result->isAllowed(); Loading
core/modules/views/src/DisplayPluginCollection.php +4 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ use Drupal\Component\Plugin\Exception\PluginException; use Drupal\Component\Plugin\PluginManagerInterface; use Drupal\Core\Plugin\DefaultLazyPluginCollection; use Drupal\views\Plugin\views\display\DisplayPluginInterface; /** * A class which wraps the displays of a view so you can lazy-initialize them. Loading Loading @@ -59,8 +60,10 @@ public function &get($instance_id) { */ public function clear() { foreach (array_filter($this->pluginInstances) as $display) { if ($display instanceof DisplayPluginInterface) { $display->destroy(); } } parent::clear(); } Loading