1 system.install | system_update_1095() |
Set default values for flags for stripping sensitive headers on HTTP downgrade or host change.
Related topics
File
- core/
modules/ system/ system.install, line 3569 - Install, update and uninstall functions for the system module.
Code
function system_update_1095() {
$config = config('system.core');
$save = FALSE;
if ($config->get('backdrop_http_request.strip_sensitive_headers_on_host_change') === NULL) {
$config->set('backdrop_http_request.strip_sensitive_headers_on_host_change', TRUE);
$save = TRUE;
}
if ($config->get('backdrop_http_request.strip_sensitive_headers_on_https_downgrade') === NULL) {
$config->set('backdrop_http_request.strip_sensitive_headers_on_https_downgrade', TRUE);
$save = TRUE;
}
if ($save) {
$config->save();
}
}