Update Drupal 7 dependencies

This commit is contained in:
Mauricio Dinarte 2025-06-03 10:37:00 -06:00 committed by Janez Urevc
parent 7d902ba1ef
commit 13df912654
391 changed files with 2900 additions and 1502 deletions

View file

@ -567,6 +567,27 @@ function system_requirements($phase) {
}
}
// See if trusted hostnames have been configured, and warn the user if they
// are not set.
if ($phase == 'runtime') {
$trusted_host_patterns = variable_get('trusted_host_patterns', array());
if (empty($trusted_host_patterns)) {
$requirements['trusted_host_patterns'] = array(
'title' => $t('Trusted Host Settings'),
'value' => $t('Not enabled'),
'description' => $t('The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is <strong>highly recommended</strong> that you configure this. See <a href="@url">Protecting against HTTP HOST Header attacks</a> for more information.', array('@url' => 'https://www.drupal.org/node/1992030')),
'severity' => REQUIREMENT_ERROR,
);
}
else {
$requirements['trusted_host_patterns'] = array(
'title' => $t('Trusted Host Settings'),
'value' => $t('Enabled'),
'description' => $t('The trusted_host_patterns setting is set to allow %trusted_host_patterns', array('%trusted_host_patterns' => implode(', ', $trusted_host_patterns))),
);
}
}
return $requirements;
}
@ -3420,6 +3441,13 @@ function system_update_7087() {
}
}
/**
* Clear caches as registry has been altered.
*/
function system_update_7088() {
// Empty update to clear caches.
}
/**
* @} End of "defgroup updates-7.x-extra".
* The next series of updates should start at 8000.