You are here

function security_review_check_temporary_files_help in Security Review 7

File

./security_review.help.inc, line 411
Main help definition.

Code

function security_review_check_temporary_files_help($check = NULL, $skipped_message = NULL) {
  $element = array();
  $element['title'] = t('Sensitive temporary files');
  $element['descriptions'][] = t("Some file editors create temporary copies of a file that can be left on the file system. A copy of a sensitive file like Drupal's settings.php may be readable by a malicious user who could use that information to further attack a site.");
  if (!empty($skipped_message)) {
    $element['findings']['descriptions'][] = $skipped_message;
  }
  elseif ($check && $check['result'] == FALSE) {
    $element['findings']['descriptions'][] = t("The following are extraneous files in your Drupal installation that can probably be removed. You should confirm you have saved any of your work in the original files prior to removing these.");
    foreach ($check['value'] as $path) {
      $element['findings']['items'][] = array(
        'safe' => check_plain($path),
        'raw' => $path,
      );
    }
  }
  return $element;
}