#197186 by dww, testing by catch, webernet, greggles: (critical security...
#197186 by dww, testing by catch, webernet, greggles: (critical security functionality) update.module did not inform users when their current release became revoked/not supported
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
'data'=>t('This project has been labeled insecure by the Drupal security team, and is no longer available for download. Immediately disabling everything included by this project is strongly recommended!'),
);
break;
case'unpublished':
case'revoked':
$projects[$project]['status']=UPDATE_REVOKED;
if(empty($projects[$project]['extra'])){
$projects[$project]['extra']=array();
}
$projects[$project]['extra'][]=array(
'class'=>'project-revoked',
'label'=>t('Project revoked'),
'data'=>t('This project has been revoked, and is no longer available for download. Disabling everything included by this project is strongly recommended!'),
'data'=>t('This project is no longer supported, and is no longer available for download. Disabling everything included by this project is strongly recommended!'),
);
break;
default:
// Assume anything else (e.g. 'published') is valid and we should
// perform the rest of the logic in this function.
break;
}
}
if(!empty($projects[$project]['status'])){
// We already know the status for this project, so there's nothing
// else to compute. Just record everything else we fetched from the
// XML file into our projects array and move to the next project.
'data'=>t('Your currently installed release has been revoked, and is no longer available for download. Disabling everything included in this release or upgrading is strongly recommended!'),
'data'=>t('Your currently installed release is now unsupported, and is no longer available for download. Disabling everything included in this release or upgrading is strongly recommended!'),
);
}
}
// Otherwise, ignore unpublished, insecure, or unsupported releases.
$text=t('There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately!',array(),$langcode);
}
else{
$text=t('There are security updates available for one or more of your modules or themes. To ensure the security of your server, you should update immediately!',array(),$langcode);
}
break;
caseUPDATE_REVOKED:
if($msg_type=='core'){
$text=t('Your version of Drupal has been revoked and is no longer available for download. Upgrading is strongly recommended!',array(),$langcode);
}
else{
$text=t('The installed version of at least one of your modules or themes has been revoked and is no longer available for download. Upgrading or disabling is strongly recommended!',array(),$langcode);
}
break;
caseUPDATE_NOT_SUPPORTED:
if($msg_type=='core'){
$text=t('Your version of Drupal is no longer supported. Upgrading is strongly recommended!',array(),$langcode);
}
else{
$text=t('The installed version of at least one of your modules or themes is no longer supported. Upgrading or disabling is strongly recommended! Please see the project homepage for more details.',array(),$langcode);
}
break;
caseUPDATE_NOT_CURRENT:
if($msg_type=='core'){
$text=t('There are updates available for your version of Drupal. To ensure the proper functioning of your site, you should update as soon as possible.',array(),$langcode);
$text=t('There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately!',array(),$langcode);
$text=t('There was a problem determining the status of available updates for your version of Drupal.',array(),$langcode);
}
else{
$text=t('There are security updates available for one or more of your modules or themes. To ensure the security of your server, you should update immediately!',array(),$langcode);
$text=t('There was a problem determining the status of available updates for one or more of your modules or themes.',array(),$langcode);