Skip to content
Snippets Groups Projects
Commit 63ac367e authored by Angie Byron's avatar Angie Byron
Browse files

#585628 by catch: Fixed accessing update.php as anonymous user.

parent cc88a199
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -395,6 +395,8 @@ function update_check_requirements() {
$output = update_access_denied_page();
}
if (isset($output) && $output) {
// Explictly start a session so that the update.php token will be accepted.
drupal_session_start();
// We defer the display of messages until all updates are done.
$progress_page = ($batch = batch_get()) && isset($batch['running']);
print theme('update_page', array('content' => $output, 'show_messages' => !$progress_page));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment