You are here

function _filefield_security_checks in Security Review 6

Checks for security_review_get_checks() when Filefield is enabled.

1 call to _filefield_security_checks()
security_review_get_checks in ./security_review.inc
Helper function allows for collection of this file's security checks.

File

./security_review.inc, line 192
Stand-alone security checks and review system.

Code

function _filefield_security_checks() {
  $checks['filefield_extensions'] = array(
    'title' => t('Filefield allowed uploads'),
    'callback' => 'security_review_check_filefield_extensions',
    'success' => t('Only safe extensions are allowed for Filefield uploaded files.'),
    'failure' => t('Unsafe file extensions are allowed in Filefield uploads.'),
    'module' => 'security_review',
    // Specify this file because the callback is here.
    'file' => 'security_review',
  );
  return array(
    'filefield' => $checks,
  );
}