diff --git a/core/modules/update/update.install b/core/modules/update/update.install index b2223f1..2f87c50 100644 --- a/core/modules/update/update.install +++ b/core/modules/update/update.install @@ -148,3 +148,19 @@ function _update_requirement_check($project, $type) { $requirement['value'] = \Drupal::l($requirement_label, new Url(_update_manager_access() ? 'update.report_update' : 'update.status')); return $requirement; } + +/** + * @addtogroup updates-8.1.x + * @{ + */ + +/** + * Rebuild the router to ensure admin/reports/updates/check has CSRF protection. + */ +function update_update_8001() { + \Drupal::service('router.builder')->rebuild(); +} + +/** + * @} End of "addtogroup updates-8.1.x". + */